|
|
@@ -99,6 +99,13 @@ public class AccidentVerifyService { |
|
|
|
if (AccidentStatusEnum.UNTREATED.getCode() != accident.getStatus()) { |
|
|
|
throw new ServiceException("该事故已处理,不能在核实"); |
|
|
|
} |
|
|
|
|
|
|
|
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>() |
|
|
|
.eq(Inspection::getEmergencyDataInspectionId, accident.getInspectionId()) |
|
|
|
.eq(Inspection::getMark, MarkEnum.VALID.getCode())); |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
throw new ServiceException("该事故关联的任务已被处理,不能在核实"); |
|
|
|
} |
|
|
|
return JsonResult.success(accident); |
|
|
|
} |
|
|
|
|