|
@@ -817,7 +817,7 @@ func (this *DialysisRecordAPIController) StartDialysis() {
|
817
|
817
|
ScheduleType: schedual_type,
|
818
|
818
|
UpdatedTime: time.Now().Unix(),
|
819
|
819
|
}
|
820
|
|
- service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
|
820
|
+ err := service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
821
|
821
|
if err != nil {
|
822
|
822
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
823
|
823
|
return
|
|
@@ -846,7 +846,7 @@ func (this *DialysisRecordAPIController) StartDialysis() {
|
846
|
846
|
ScheduleType: schedual_type,
|
847
|
847
|
UpdatedTime: time.Now().Unix(),
|
848
|
848
|
}
|
849
|
|
- service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
|
849
|
+ err := service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
850
|
850
|
if err != nil {
|
851
|
851
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
852
|
852
|
return
|
|
@@ -867,7 +867,7 @@ func (this *DialysisRecordAPIController) StartDialysis() {
|
867
|
867
|
ScheduleType: schedual_type,
|
868
|
868
|
UpdatedTime: time.Now().Unix(),
|
869
|
869
|
}
|
870
|
|
- service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
|
870
|
+ err := service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
871
|
871
|
if err != nil {
|
872
|
872
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
873
|
873
|
return
|
|
@@ -1421,7 +1421,7 @@ func (this *DialysisRecordAPIController) ModifyStartDialysis() {
|
1421
|
1421
|
ScheduleType: schedual_type,
|
1422
|
1422
|
UpdatedTime: time.Now().Unix(),
|
1423
|
1423
|
}
|
1424
|
|
- service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
|
1424
|
+ err := service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
1425
|
1425
|
if err != nil {
|
1426
|
1426
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1427
|
1427
|
return
|
|
@@ -1444,7 +1444,7 @@ func (this *DialysisRecordAPIController) ModifyStartDialysis() {
|
1444
|
1444
|
ScheduleType: schedual_type,
|
1445
|
1445
|
UpdatedTime: time.Now().Unix(),
|
1446
|
1446
|
}
|
1447
|
|
- service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
|
1447
|
+ err := service.UpdateScheduleOne(daySchedule.ID, xtSchedule)
|
1448
|
1448
|
if err != nil {
|
1449
|
1449
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1450
|
1450
|
return
|