test_user před 1 rokem
rodič
revize
17f0a91c3b

+ 2 - 6
controllers/new_mobile_api_controllers/staff_schedule_api_controller.go Zobrazit soubor

@@ -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)

+ 2 - 1
service/schedule_service.go Zobrazit soubor

@@ -352,7 +352,8 @@ func UpdateScheduleTwo(schone models.Schedule, schtwo models.Schedule) {
352 352
 
353 353
 	schone.ScheduleType = tempTypeTwo
354 354
 	schtwo.ScheduleType = tempTypeID
355
-
355
+	schone.IsExport = 9000
356
+	schtwo.IsExport = 9000
356 357
 	utx.Save(&schone)
357 358
 	utx.Save(&schtwo)
358 359