|
@@ -278,7 +278,6 @@ func (this *StaffScheduleApiController) GetAllZonePb() {
|
278
|
278
|
|
279
|
279
|
// is_open, _ := this.GetInt64("is_open")
|
280
|
280
|
|
281
|
|
-
|
282
|
281
|
//获取空床位的排班数据
|
283
|
282
|
list, _ := service.GetPatientScheduleByPd(startTime, zoneid, orgid, classtype)
|
284
|
283
|
if len(list) > 0 {
|
|
@@ -307,13 +306,10 @@ func (this *StaffScheduleApiController) GetAllZonePb() {
|
307
|
306
|
// return
|
308
|
307
|
// }
|
309
|
308
|
this.ServeSuccessJSON(map[string]interface{}{
|
310
|
|
- "schedule": list,
|
|
309
|
+ "schedule": list,
|
311
|
310
|
// "stockType": stockType,
|
312
|
311
|
// "zonelist": zonelist,
|
313
|
312
|
})
|
314
|
|
-
|
315
|
|
-
|
316
|
|
-
|
317
|
313
|
|
318
|
314
|
// id := this.GetMobileAdminUserInfo().Org.Id
|
319
|
315
|
// zone, err := service.GetAllMobileZonePb(id)
|
|
@@ -327,7 +323,6 @@ func (this *StaffScheduleApiController) GetAllZonePb() {
|
327
|
323
|
// })
|
328
|
324
|
}
|
329
|
325
|
|
330
|
|
-
|
331
|
326
|
func (this *StaffScheduleApiController) GetPatientScheduleList() {
|
332
|
327
|
orgid := this.GetMobileAdminUserInfo().Org.Id
|
333
|
328
|
fmt.Println("orgid", orgid)
|
|
@@ -721,6 +716,7 @@ func (c *StaffScheduleApiController) CreateMobileSchedulePatient() {
|
721
|
716
|
schedule.CreatedTime = time.Now().Unix()
|
722
|
717
|
schedule.UpdatedTime = time.Now().Unix()
|
723
|
718
|
schedule.Status = 1
|
|
719
|
+ schedule.IsExport = 6000
|
724
|
720
|
schedule.UserOrgId = adminUserInfo.Org.Id
|
725
|
721
|
|
726
|
722
|
bed, _ := service.GetDeviceNumberByID(adminUserInfo.Org.Id, schedule.BedId)
|