|
|
@@ -126,7 +126,7 @@ public class PointFlightService { |
|
|
|
inspection.setCode(code); |
|
|
|
inspection.setDeptId(user.getDeptId()); |
|
|
|
inspection.setName("应急任务"+code); |
|
|
|
inspection.setType(2); |
|
|
|
inspection.setType(1); |
|
|
|
inspection.setStatus(TaskStatusEnum.INFLIGHT.getCode()); |
|
|
|
inspection.setRoadId(""); |
|
|
|
inspection.setSectionId(""); |
|
|
@@ -138,6 +138,7 @@ public class PointFlightService { |
|
|
|
inspection.setExecutionStartTime(DateUtils.now()); |
|
|
|
inspection.setCreateUser(user.getId()); |
|
|
|
inspection.setCreateTime(DateUtils.now()); |
|
|
|
inspection.setAccidentTask(1); |
|
|
|
int result = inspectionMapper.insert(inspection); |
|
|
|
if(result<=0){ |
|
|
|
log.info("创建应急任务失败"); |