| | |
| | | <!-- 按项目统计钻孔数据 --> |
| | | <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 |
| | |
| | | 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> |