管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-15 bdd3b95a503393f8eb79279d0653f8f88dc8d992
src/main/resources/mapper/sys/ReportMapper.xml
@@ -284,9 +284,9 @@
    <!-- 统计管线长度 -->
    <select id="countLineLength" resultType="com.lf.server.entity.ctrl.CountEntity">
        select name "m1", code,
        select name "m1",
        (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 bs.m_pipeline b where b.dirid like a.code || '%') as  "len"
        from lf.sys_dir a
        where pid = 0
        order by a.code;