|
|
@@ -99,7 +99,7 @@ public class AccidentVerifyCompletedService { |
|
|
|
if (ObjectUtil.isNull(accident)) { |
|
|
|
throw new ServiceException("事故不存在"); |
|
|
|
} |
|
|
|
if (AccidentStatusEnum.PROCESSED.getCode() == accident.getStatus()) { |
|
|
|
if (AccidentStatusEnum.PROCESSED.getCode() != accident.getStatus()) { |
|
|
|
throw new ServiceException("该事故未处理,不能核实完成"); |
|
|
|
} |
|
|
|
return JsonResult.success(accident); |
|
|
@@ -138,6 +138,7 @@ public class AccidentVerifyCompletedService { |
|
|
|
accidentUpdate.setUpdateUser(userId); |
|
|
|
accidentUpdate.setUpdateTime(DateUtils.now()); |
|
|
|
accidentUpdate.setEndTime(DateUtils.now()); |
|
|
|
accidentUpdate.setStatus(AccidentStatusEnum.COMPLETED.getCode()); |
|
|
|
Integer count = accidentMapper.updateById(accidentUpdate); |
|
|
|
if (count <= 0) { |
|
|
|
log.info("事故核实完成,修改预警信息失败"); |