浏览代码

修改核实完成代码

tags/v1.2.0^2
wanjing 1年前
父节点
当前提交
f34447c377
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyCompletedService.java
  2. +0
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyService.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyCompletedService.java 查看文件

@@ -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);

+ 0
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyService.java 查看文件

@@ -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("创建应急任务失败");

正在加载...
取消
保存