|
@@ -546,6 +546,7 @@ func (c *PatientApiController) DeleteDoctorAdvice() {
|
546
|
546
|
}
|
547
|
547
|
|
548
|
548
|
func (c *PatientApiController) ExecDoctorAdvice() {
|
|
549
|
+
|
549
|
550
|
execution_time := c.GetString("execution_time")
|
550
|
551
|
|
551
|
552
|
origin, _ := c.GetInt64("origin", 0)
|
|
@@ -1097,6 +1098,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1097
|
1098
|
|
1098
|
1099
|
//药品管理信息
|
1099
|
1100
|
_, drugStockConfig := service.FindDrugStockAutomaticReduceRecordByOrgId(adminInfo.Org.Id)
|
|
1101
|
+
|
1100
|
1102
|
storeHouseConfig, _ := service.GetAllStoreHouseConfig(adminInfo.Org.Id)
|
1101
|
1103
|
if drugStockConfig.IsOpen == 1 {
|
1102
|
1104
|
for _, item := range advices {
|
|
@@ -1145,6 +1147,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1145
|
1147
|
var prescribing_number_total int64
|
1146
|
1148
|
|
1147
|
1149
|
config, _ := service.GetDrugOpenConfigOne(adminInfo.Org.Id)
|
|
1150
|
+
|
1148
|
1151
|
if config.IsOpen != 1 {
|
1149
|
1152
|
//查询该药品是否有库存
|
1150
|
1153
|
houseConfig, _ := service.GetAllStoreHouseConfig(advice.UserOrgId)
|
|
@@ -1198,6 +1201,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1198
|
1201
|
|
1199
|
1202
|
if prescribing_number_total <= total {
|
1200
|
1203
|
pharmacyConfig, _ := service.FindPharmacyConfig(advice.UserOrgId)
|
|
1204
|
+
|
1201
|
1205
|
if medical.IsUse == 2 {
|
1202
|
1206
|
|
1203
|
1207
|
if config.IsOpen != 1 {
|