吉安感知网项目-后端
linwei
2026-04-08 7101588d0765780ce18aff3a380c8f3f29efc472
opt:优化
2 files modified
6 ■■■■ changed files
drone-service/drone-fw/src/main/java/org/sxkj/fw/cockpit/service/impl/CockpitServiceImpl.java 4 ●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/detection/mapper/FwTaskScheduleMapper.xml 2 ●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/cockpit/service/impl/CockpitServiceImpl.java
@@ -118,8 +118,8 @@
        fwEffectEvalEntity.setDeviceName(device.getDeviceName());
        fwEffectEvalEntity.setDeviceModel(device.getDeviceModel());
        fwEffectEvalEntity.setDeviceType(device.getDeviceType());
        fwEffectEvalEntity.setDeployLongitude(device.getLongitude() != null ? Double.parseDouble(device.getLongitude()) : null);
        fwEffectEvalEntity.setDeployLatitude(device.getLatitude() != null ? Double.parseDouble(device.getLatitude()) : null);
        fwEffectEvalEntity.setDeployLongitude(StringUtil.isNotBlank(device.getLongitude()) ? Double.parseDouble(device.getLongitude()) : null);
        fwEffectEvalEntity.setDeployLatitude(StringUtil.isNotBlank(device.getLatitude()) ? Double.parseDouble(device.getLatitude()) : null);
        fwEffectEvalEntity.setAreaCode(device.getAreaCode());
        // 反制效果及工作模式(从参数获取,否则使用默认值)
drone-service/drone-fw/src/main/java/org/sxkj/fw/detection/mapper/FwTaskScheduleMapper.xml
@@ -87,7 +87,7 @@
                and d.device_type = #{param2.deviceType}
            </if>
            <if test="param2.status != null and param2.status != ''">
                and d.status::text = #{status}::text
                and d.status::text = #{param2.status}::text
            </if>
            <if test="param2.deptList != null and param2.deptList.size > 0">
                and ts.create_dept in