吉安感知网项目-后端
linwei
2026-06-04 234b755e420e64005fc76cc5519716653ca6a611
fix(odm): 修复附件结果类型设置问题

- 将 AttachResultTypeEnum.TILT 类型转换为字符串格式
- 将 AttachResultTypeEnum.ALB 类型转换为字符串格式
- 将 AttachResultTypeEnum.ORT 类型转换为字符串格式
- 确保所有附件结果类型的一致性处理
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());
            attach.setResultType(AttachResultTypeEnum.TILT.getType().toString());
        }
        // 设置类型-三维白膜
        if (odmTaskInfo.getType() == OdmTypeEnum.ALB.getType().intValue()) {
            attach.setResultType(AttachResultTypeEnum.ALB.getType());
            attach.setResultType(AttachResultTypeEnum.ALB.getType().toString());
        }
        // 设置区域编号
        attach.setAreaCode(odmTaskInfo.getAreaCode());
@@ -979,7 +979,7 @@
                attach.setPatrolTaskId(odmTaskInfo.getWaylineJobId());
            }
            // 设置类型
            attach.setResultType(AttachResultTypeEnum.ORT.getType());
            attach.setResultType(AttachResultTypeEnum.ORT.getType().toString());
            // 设置设备编号
            if (!Strings.isBlank(odmTaskInfo.getDeviceSn())) {
                attach.setDeviceSn(odmTaskInfo.getDeviceSn());
@@ -2610,7 +2610,7 @@
        // 设置类型-三维白膜
        // 测试用,临时用,用后需要手动数据库修改
        attach.setResultType(AttachResultTypeEnum.ALB.getType());
        attach.setResultType(AttachResultTypeEnum.ALB.getType().toString());
        log.info("发起远程调用保存三维白膜/倾斜附件信息,tif 路径:{}", path);
        Boolean isSaveAttach = attachClient.saveAttachInfo(attach);