|
@@ -741,17 +741,18 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
741
|
741
|
}
|
742
|
742
|
if prescribing_number_total <= total {
|
743
|
743
|
service.DrugsDelivery(item.UserOrgId, item.ExecutionStaff, &item)
|
744
|
|
- c.ServeSuccessJSON(map[string]interface{}{
|
745
|
|
- "msg": "1",
|
746
|
|
- "advice": advice,
|
747
|
|
- "ids": ids,
|
748
|
|
- })
|
749
|
|
- return
|
|
744
|
+
|
750
|
745
|
}
|
751
|
746
|
|
752
|
747
|
}
|
753
|
748
|
}
|
754
|
749
|
}
|
|
750
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
751
|
+ "msg": "1",
|
|
752
|
+ "advice": advice,
|
|
753
|
+ "ids": ids,
|
|
754
|
+ })
|
|
755
|
+ return
|
755
|
756
|
} else {
|
756
|
757
|
|
757
|
758
|
advices, _ := service.FindDoctorAdviceByIds(adminUserInfo.Org.Id, ids)
|
|
@@ -781,7 +782,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
781
|
782
|
count, _ := strconv.ParseInt(prescribingNumber_temp, 10, 64)
|
782
|
783
|
//转化为最小单位
|
783
|
784
|
total = list.Count*medical.MinNumber + list.StockMinNumber
|
784
|
|
- fmt.Println("美国疫情2332323233232323232332323232233232323232", total)
|
|
785
|
+
|
785
|
786
|
prescribing_number_total = count * medical.MinNumber
|
786
|
787
|
}
|
787
|
788
|
|
|
@@ -920,6 +921,12 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
920
|
921
|
}
|
921
|
922
|
}
|
922
|
923
|
}
|
|
924
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
925
|
+ "msg": "1",
|
|
926
|
+ "advice": advice,
|
|
927
|
+ "ids": ids,
|
|
928
|
+ })
|
|
929
|
+ return
|
923
|
930
|
}
|
924
|
931
|
}
|
925
|
932
|
c.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -1042,12 +1049,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1042
|
1049
|
}
|
1043
|
1050
|
if prescribing_number_total <= total {
|
1044
|
1051
|
service.HisDrugsDelivery(adminInfo.Org.Id, creater, &advice)
|
1045
|
|
- c.ServeSuccessJSON(map[string]interface{}{
|
1046
|
|
- "msg": "1",
|
1047
|
|
- "advice": advice,
|
1048
|
|
- "ids": ids,
|
1049
|
|
- })
|
1050
|
|
- return
|
|
1052
|
+
|
1051
|
1053
|
}
|
1052
|
1054
|
}
|
1053
|
1055
|
}
|
|
@@ -1063,6 +1065,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1063
|
1065
|
} else {
|
1064
|
1066
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
1065
|
1067
|
}
|
|
1068
|
+
|
1066
|
1069
|
}
|
1067
|
1070
|
}
|
1068
|
1071
|
|