test_user 1 year ago
parent
commit
69a57dd621

+ 1 - 1
controllers/new_mobile_api_controllers/staff_schedule_api_controller.go View File

911
 			Status:       1,
911
 			Status:       1,
912
 			CreatedTime:  time.Now().Unix(),
912
 			CreatedTime:  time.Now().Unix(),
913
 			UpdatedTime:  0,
913
 			UpdatedTime:  0,
914
-			IsExport:     0,
914
+			IsExport:     20000,
915
 		}
915
 		}
916
 		service.DeleteSchedule(id)
916
 		service.DeleteSchedule(id)
917
 		service.CreateSchedule(&xtSchedule)
917
 		service.CreateSchedule(&xtSchedule)

+ 1 - 1
service/device_service.go View File

833
 
833
 
834
 func UpdateScheduleById(id int64, schedule models.Schedule) error {
834
 func UpdateScheduleById(id int64, schedule models.Schedule) error {
835
 
835
 
836
-	err := XTWriteDB().Model(&models.Schedule{}).Where("id = ? and status =1", id).Update(map[string]interface{}{"patient_id": schedule.PatientId, "mode_id": schedule.ModeId}).Error
836
+	err := XTWriteDB().Model(&models.Schedule{}).Where("id = ? and status =1", id).Update(map[string]interface{}{"patient_id": schedule.PatientId, "mode_id": schedule.ModeId, "is_export": 10000}).Error
837
 	return err
837
 	return err
838
 }
838
 }
839
 
839