Browse Source

Merge branch '20220812' of http://git.shengws.com/csx/XT_New into 20220812

XMLWAN 1 year ago
parent
commit
7c9ef8cfe9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      service/schedule_service.go

+ 3 - 2
service/schedule_service.go View File

354
 	schtwo.ScheduleType = tempTypeID
354
 	schtwo.ScheduleType = tempTypeID
355
 	schone.IsExport = 9000
355
 	schone.IsExport = 9000
356
 	schtwo.IsExport = 9000
356
 	schtwo.IsExport = 9000
357
-	utx.Save(&schone)
358
-	utx.Save(&schtwo)
357
+
358
+	utx.Model(&models.Schedule{}).Where("id = ?", schone.ID).Updates(map[string]interface{}{"partition_id": schone.PartitionId, "bed_id": schone.BedId, "schedule_type": schone.ScheduleType, "is_export": 9000})
359
+	utx.Model(&models.Schedule{}).Where("id = ?", schtwo.ID).Updates(map[string]interface{}{"partition_id": schtwo.PartitionId, "bed_id": schtwo.BedId, "schedule_type": schtwo.ScheduleType, "is_export": 9000})
359
 
360
 
360
 }
361
 }
361
 
362