|
@@ -86,6 +86,8 @@ func SignApiRegistRouters() {
|
86
|
86
|
|
87
|
87
|
beego.Router("/api/device/tocheckinformation", &SignApiController{}, "Get:ToCheckInformation")
|
88
|
88
|
|
|
89
|
+ beego.Router("/api/device/toautodrug", &SignApiController{}, "Get:ToAutoDrug")
|
|
90
|
+
|
89
|
91
|
}
|
90
|
92
|
|
91
|
93
|
// 短信服务接口
|
|
@@ -1143,3 +1145,16 @@ func (this *SignApiController) ToCheckInformation() {
|
1143
|
1145
|
"informationOne": informationOne,
|
1144
|
1146
|
})
|
1145
|
1147
|
}
|
|
1148
|
+
|
|
1149
|
+func (this *SignApiController) ToAutoDrug() {
|
|
1150
|
+
|
|
1151
|
+ advice, _ := service.GetAutoDrugList(9919)
|
|
1152
|
+
|
|
1153
|
+ for _, item := range advice {
|
|
1154
|
+ //查找该患者是否出库过
|
|
1155
|
+ outList, _ := service.GetDrugAutoWarehouseOutList(item.PatientId, item.UserOrgId, item.DrugId, item.AdviceDate)
|
|
1156
|
+ if outList.ID == 0 {
|
|
1157
|
+ service.HisDrugsDelivery(item.UserOrgId, item.ExecutionStaff, item)
|
|
1158
|
+ }
|
|
1159
|
+ }
|
|
1160
|
+}
|