test_user 1 year ago
parent
commit
17f0a91c3b

+ 2 - 6
controllers/new_mobile_api_controllers/staff_schedule_api_controller.go View File

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

+ 2 - 1
service/schedule_service.go View File

352
 
352
 
353
 	schone.ScheduleType = tempTypeTwo
353
 	schone.ScheduleType = tempTypeTwo
354
 	schtwo.ScheduleType = tempTypeID
354
 	schtwo.ScheduleType = tempTypeID
355
-
355
+	schone.IsExport = 9000
356
+	schtwo.IsExport = 9000
356
 	utx.Save(&schone)
357
 	utx.Save(&schone)
357
 	utx.Save(&schtwo)
358
 	utx.Save(&schtwo)
358
 
359