|
@@ -598,6 +598,9 @@ func (c *DialysisApiController) PostPrescription() {
|
598
|
598
|
prescription.DisplaceLiquiValue = 0
|
599
|
599
|
}
|
600
|
600
|
}
|
|
601
|
+ if adminUserInfo.CurrentOrgId == 10340 && prescription.AdminUserId == 0 {
|
|
602
|
+ prescription.AdminUserId = adminUserInfo.AdminUser.Id
|
|
603
|
+ }
|
601
|
604
|
|
602
|
605
|
err := service.AddSigleRecord(&prescription)
|
603
|
606
|
key := strconv.FormatInt(adminUserInfo.CurrentOrgId, 10) + ":" + strconv.FormatInt(patient, 10) + ":" + strconv.FormatInt(recordDate.Unix(), 10) + ":" + strconv.FormatInt(mode_id, 10) + ":dialysis_prescribe"
|
|
@@ -1179,6 +1182,10 @@ func (c *DialysisApiController) PostSoulution() {
|
1179
|
1182
|
}
|
1180
|
1183
|
}
|
1181
|
1184
|
|
|
1185
|
+ if adminUserInfo.CurrentOrgId == 10340 && prescription.AdminUserId == 0 {
|
|
1186
|
+ prescription.AdminUserId = adminUserInfo.AdminUser.Id
|
|
1187
|
+ }
|
|
1188
|
+
|
1182
|
1189
|
err := service.SavePrescriptionAndCreateSolution(&solution, &prescription)
|
1183
|
1190
|
|
1184
|
1191
|
//获取最新1条
|
|
@@ -5235,14 +5242,15 @@ func (this *DialysisApiController) GetHisDialysisGoodCount() {
|
5235
|
5242
|
|
5236
|
5243
|
schedule_type, _ := this.GetInt64("schedule_type")
|
5237
|
5244
|
|
5238
|
|
- partion_type, _ := this.GetInt64("partion_type")
|
5239
|
|
-
|
|
5245
|
+ //partion_type, _ := this.GetInt64("partion_type")
|
|
5246
|
+ partion_type := this.GetString("partion_type")
|
|
5247
|
+ var ids []string
|
|
5248
|
+ ids = strings.Split(partion_type, ",")
|
5240
|
5249
|
start_time := this.GetString("selected_date")
|
5241
|
5250
|
timeLayout := "2006-01-02"
|
5242
|
5251
|
loc, _ := time.LoadLocation("Local")
|
5243
|
5252
|
startTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)
|
5244
|
|
-
|
5245
|
|
- list, _ := service.GetHisDialysisGoodCount(orgId, schedule_type, partion_type, startTime.Unix())
|
|
5253
|
+ list, _ := service.GetHisDialysisGoodCountTwo(orgId, schedule_type, ids, startTime.Unix())
|
5246
|
5254
|
|
5247
|
5255
|
this.ServeSuccessJSON(map[string]interface{}{
|
5248
|
5256
|
"list": list,
|