管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-15 8a3d867c8632ba0de5459fc9de602e2379fc1313
修改 统计管线长度
已修改1个文件
7 ■■■■ 文件已修改
src/main/resources/mapper/sys/ReportMapper.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/sys/ReportMapper.xml
@@ -284,7 +284,12 @@
    <!-- 统计管线长度 -->
    <select id="countLineLength" resultType="com.lf.server.entity.ctrl.CountEntity">
        select name "m1", area * 1000000 "area" from lf.sys_line_buffer;
        select name "m1", code,
          (select cast( coalesce(sum( ST_Length( ST_GeographyFromText( ST_AsText(geom) ) ) ) / 1000, 0) as decimal(20, 2) )
           from bs.m_pipeline b where b.dirid like a.code || '%') as  "sizes"
        from lf.sys_dir a
        where pid = 0
        order by a.code;
    </select>
    <!-- 按项目统计勘探点个数 -->