| | |
| | | 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 |
| | |
| | | dirid like #{code} and geom is not null |
| | | </where> |
| | | </select> |
| | | |
| | | <!-- 按项目统计数字高程模型面积 --> |
| | | <select id="countDemAreaByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", 0.0 "area" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计三维地形模型面积 --> |
| | | <select id="countMptAreaByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", 0.0 "area" |
| | | from lf.sys_dir a |
| | | where pid = |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计倾斜摄影模型面积 --> |
| | | <select id="countOsgbAreaByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", 0.0 "area" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计激光点云模型面积 --> |
| | | <select id="countLasAreaByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", 0.0 "area" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计勘察工点个数 --> |
| | | <select id="countSurveyWorksiteByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.s_surveyworksite b where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计勘察报告个数 --> |
| | | <select id="countExplorationReportByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.s_explorationpoint b |
| | | inner join lf.sys_attach c on b.eventid = c.tab_guid |
| | | where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计崩塌个数 --> |
| | | <select id="countCollapseByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.g_collapse b where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计泥石流个数 --> |
| | | <select id="countDebrisFlowByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.g_debrisflow b where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计地面塌陷个数 --> |
| | | <select id="countGroundCollapseByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.g_ground_collapse b where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计高陡边坡个数 --> |
| | | <select id="countHighSteepSlopeByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.g_highandsteep_slope b where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计滑坡个数 --> |
| | | <select id="countLandSlideByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.g_landslide b where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计不稳定斜坡个数 --> |
| | | <select id="countUnstableSlopeByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.g_unstable_slope b where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计水毁个数 --> |
| | | <select id="countWaterDamageByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select count(*) from bs.g_water_damage b where b.dirid like a.code || '%') "count" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |
| | | </select> |
| | | </mapper> |