管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-12 7bfbdcdab10c58ecf96b45543c0d0df948af4ba5
src/main/resources/mapper/show/OneMapMapper.xml
@@ -316,21 +316,21 @@
    </select>
    <!-- 根据类型查询元数据(用于计算面积) -->
    <select id="selectMetaByType" resultType="com.lf.server.entity.ctrl.IdNameEntity">
        (select a.id, 'DOM' name from lf.sys_meta a
    <select id="selectMetaByType" resultType="java.util.Map">
        (select a.id, a.path, 'DOM' name 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 = '数字正射影像图')
        union all
        (select a.id, 'DEM' name from lf.sys_meta a
        (select a.id, a.path, 'DEM' name 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 = '数字高程模型')
        union all
        (select id, 'OSGB' name from lf.sys_meta where area is null and type = 'osgb')
        (select id, path, 'OSGB' name from lf.sys_meta where area is null and type = 'osgb')
        union all
        (select id, 'LAS' name from lf.sys_meta where area is null and type = 'las' or type = 'laz')
        (select id, path, 'LAS' name from lf.sys_meta where area is null and type = 'las' or type = 'laz')
        union all
        (select id, 'IFC' name from lf.sys_meta where area is null and type = 'ifc')
        (select id, path, 'IFC' name from lf.sys_meta where area is null and type = 'ifc')
        union all
        (select id, 'FBX' name from lf.sys_meta where area is null and type = 'fbx')
        (select id, path, 'FBX' name from lf.sys_meta where area is null and type = 'fbx')
    </select>
</mapper>