管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-02-28 7185f65d9e4087fef18567365ea621845fe2659e
src/main/resources/mapper/sys/ReportMapper.xml
@@ -122,7 +122,7 @@
    <!-- 按项目统计钻孔数据 -->
    <select id="countExplorationPoints" resultType="com.lf.server.entity.ctrl.CountEntity">
        select
            name "m1",
            name "m1", a.code "m3",
            (select count(*) from bs.s_explorationpoint b where dirid like a.code || '%') "count",
            (select coalesce(round(sum(sizes)::numeric, 3), 0)
                from bs.s_explorationpoint b
@@ -133,4 +133,12 @@
        where pid = 0
        order by code;
    </select>
    <select id="selectExplorationPoints" resultType="com.lf.server.entity.ctrl.CoordinateEntity">
        select ST_X(geom) "x", ST_Y(geom) "y"
        from bs.s_explorationpoint b
        <where>
            dirid like #{code} and geom is not null
        </where>
    </select>
</mapper>