瀏覽代碼

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.2.0^2
chengwang 1 年之前
父節點
當前提交
0d70eab29d
共有 2 個檔案被更改,包括 7 行新增1 行删除
  1. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Inspection.java
  2. +2
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Inspection.java 查看文件

@@ -276,6 +276,11 @@ public class Inspection extends BaseEntity {
*/
private String patrolLocation;

/**
* 任务类型:0巡检任务 1应急任务
*/
private Integer accidentTask;

/**
* 应急任务关联数据任务ID
*/

+ 2
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java 查看文件

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

Loading…
取消
儲存