test_user 1 yıl önce
ebeveyn
işleme
69a57dd621

+ 1 - 1
controllers/new_mobile_api_controllers/staff_schedule_api_controller.go Dosyayı Görüntüle

@@ -911,7 +911,7 @@ func (c *StaffScheduleApiController) ChangeScheduleBed() {
911 911
 			Status:       1,
912 912
 			CreatedTime:  time.Now().Unix(),
913 913
 			UpdatedTime:  0,
914
-			IsExport:     0,
914
+			IsExport:     20000,
915 915
 		}
916 916
 		service.DeleteSchedule(id)
917 917
 		service.CreateSchedule(&xtSchedule)

+ 1 - 1
service/device_service.go Dosyayı Görüntüle

@@ -833,7 +833,7 @@ func GetPartionId(bed_id int64, org_id int64) (models.XtDeviceNumber, error) {
833 833
 
834 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 837
 	return err
838 838
 }
839 839