管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-13 fb4d9f5196471a7b202b3df69aaf9c8cf50b3377
修改数据计算面积接口
已修改3个文件
20 ■■■■ 文件已修改
src/main/java/com/lf/server/service/show/OneMapService.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/show/OneMapMapper.xml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/show/OneMapService.java
@@ -435,15 +435,15 @@
                    }
                    String guid = fmeService.calcArea(sjfl, id, wjlj);
                    if (StringUtils.isEmpty(guid)) {
                        ids.add(guid);
                    if (!StringUtils.isEmpty(guid)) {
                        ids.add(map.get("id").toString());
                        rows++;
                    }
                } catch (Exception ex) {
                    log.error(ex.getMessage(), ex);
                }
            }
            System.out.println(StringHelper.join(ids, ","));
            log.info(StringHelper.join(ids, ","));
        }
        return String.format("共处理了 %d 条记录", rows);
src/main/resources/application.yml
@@ -150,7 +150,7 @@
    # 下载目录
    download: D:\LF\download
    # 上传目录
    upload: E:\TaiRui\LF\upload
    upload: D:\LF\upload
    # 临时目录
    temp: D:\LF\temp
  # 上传附件表
src/main/resources/mapper/show/OneMapMapper.xml
@@ -319,18 +319,18 @@
    <select id="selectMetaByType" resultType="java.util.Map">
        (select a.id, a.path, 'DOM' type from lf.sys_meta a
            inner join lf.sys_dir b on a.dircode = b.code
            where a.area is null and a.type in ('img', 'tif', 'tiff') and b.name = '数字正射影像图' limit 1)
            where a.area is null and a.type in ('img', 'tif', 'tiff') and b.name = '数字正射影像图')
        union all
        (select a.id, a.path, 'DEM' type from lf.sys_meta a
            inner join lf.sys_dir b on a.dircode = b.code
            where a.area is null and a.type in ('dem', 'tif', 'tiff') and b.name = '数字高程模型' limit 1)
            where a.area is null and a.type in ('dem', 'tif', 'tiff') and b.name = '数字高程模型')
        union all
        (select id, path, 'OSGB' type from lf.sys_meta where area is null and type = 'osgb' limit 1)
        (select id, path, 'OSGB' type from lf.sys_meta where area is null and type = 'osgb')
        union all
        (select id, path, 'LAS' type from lf.sys_meta where area is null and type = 'las' or type = 'laz' limit 1)
        (select id, path, 'LAS' type from lf.sys_meta where area is null and (type = 'las' or type = 'laz'))
        union all
        (select id, path, 'IFC' type from lf.sys_meta where area is null and type = 'ifc' limit 1)
        (select id, path, 'IFC' type from lf.sys_meta where area is null and type = 'ifc')
        union all
        (select id, path, 'FBX' type from lf.sys_meta where area is null and type = 'fbx' limit 1)
        (select id, path, 'FBX' type from lf.sys_meta where area is null and type = 'fbx')
    </select>
</mapper>