吉安感知网项目-后端
linwei
2026-06-09 abe28fb2d90bedc4c06ffb389b9f73c2b1249848
fix(odm): 修复任务信息中的结果类型设置问题

- 移除倾斜摄影任务的硬编码结果类型
- 移除三维白膜任务的硬编码结果类型
- 移除正射影像任务的硬编码结果类型
- 统一将所有任务类型的结果类型设为null以避免冲突
1 files modified
8 ■■■■ changed files
drone-task/drone-odm/src/main/java/org/sxkj/odm/service/impl/OdmTaskInfoServiceImpl.java 8 ●●●● patch | view | raw | blame | history
drone-task/drone-odm/src/main/java/org/sxkj/odm/service/impl/OdmTaskInfoServiceImpl.java
@@ -774,11 +774,11 @@
        }
        // 设置类型-切斜摄影
        if (odmTaskInfo.getType() == OdmTypeEnum.TILT.getType().intValue()) {
            attach.setResultType(AttachResultTypeEnum.TILT.getType().toString());
            attach.setResultType(null);
        }
        // 设置类型-三维白膜
        if (odmTaskInfo.getType() == OdmTypeEnum.ALB.getType().intValue()) {
            attach.setResultType(AttachResultTypeEnum.ALB.getType().toString());
            attach.setResultType(null);
        }
        // 设置区域编号
        attach.setAreaCode(odmTaskInfo.getAreaCode());
@@ -979,7 +979,7 @@
                attach.setPatrolTaskId(odmTaskInfo.getWaylineJobId());
            }
            // 设置类型
            attach.setResultType(AttachResultTypeEnum.ORT.getType().toString());
            attach.setResultType(null);
            // 设置设备编号
            if (!Strings.isBlank(odmTaskInfo.getDeviceSn())) {
                attach.setDeviceSn(odmTaskInfo.getDeviceSn());
@@ -2610,7 +2610,7 @@
        // 设置类型-三维白膜
        // 测试用,临时用,用后需要手动数据库修改
        attach.setResultType(AttachResultTypeEnum.ALB.getType().toString());
        attach.setResultType(null);
        log.info("发起远程调用保存三维白膜/倾斜附件信息,tif 路径:{}", path);
        Boolean isSaveAttach = attachClient.saveAttachInfo(attach);