@@ -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); |
@@ -125,12 +125,10 @@ public class AccidentVerifyService { | |||
inspection.setCreateUser(userid); | |||
inspection.setCreateTime(DateUtils.now()); | |||
inspection.setEmergencyDataInspectionId(oldInspection.getId()); | |||
inspection.setRoadId(""); | |||
inspection.setRoadName(""); | |||
inspection.setSectionId(""); | |||
inspection.setSectionName(""); | |||
Integer count = inspectionMapper.insert(inspection); | |||
if (count <= 0) { | |||
log.info("创建应急任务失败"); |