| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "统计管线长度") |
| | | @ApiOperation(value = "按项目统计管线长度") |
| | | @GetMapping(value = "/countLineLength") |
| | | public ResponseMsg<Object> countLineLength() { |
| | | try { |
| | |
| | | public List<CountEntity> countDomAreaByPrj(); |
| | | |
| | | /** |
| | | * 统计管线长度 |
| | | * 按项目统计管线长度 |
| | | * |
| | | * @return |
| | | */ |
| | |
| | | |
| | | <!-- 按大类统计 --> |
| | | <select id="countByMajor" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select '测绘(ESV)' "m1", '数字线划图' "m2", '平方千米' "m3", coalesce(sum(area), 0) "sizes" from lf.sys_line_buffer |
| | | select '测绘(ESV)' "m1", '数字线划图' "m2", '平方千米' "m3", cast( coalesce(sum(area), 0) / 1000000 as decimal(20, 2) ) "sizes" from lf.sys_line_buffer |
| | | union all |
| | | select '测绘(ESV)' "m1", '数字正射影像图' "m2", '平方千米' "m3", ( |
| | | select cast( coalesce(sum(b.area), 0) / 1000000 as decimal(20, 2)) from lf.sys_meta b |
| | |
| | | |
| | | <!-- 统计数字线划图面积 --> |
| | | <select id="countDlgAreaByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", area * 1000000 "area" from lf.sys_line_buffer; |
| | | select dir "m1", cast( coalesce(sum(area), 0) as decimal(20, 2) ) "area" |
| | | from lf.sys_line_buffer |
| | | group by code, dir |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 按项目统计数字正射影像图面积 --> |
| | |
| | | order by code; |
| | | </select> |
| | | |
| | | <!-- 统计管线长度 --> |
| | | <!-- 按项目统计管线长度 --> |
| | | <select id="countLineLength" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select cast( coalesce(sum( ST_Length( ST_GeographyFromText( ST_AsText(geom) ) ) ) / 1000, 0) as decimal(20, 2) ) |
| | |
| | | <select id="countGeoModelAreaByPrj" resultType="com.lf.server.entity.ctrl.CountEntity"> |
| | | select name "m1", |
| | | (select cast( coalesce(sum(b.area), 0) as decimal(20, 2) ) |
| | | from lf.sys_meta b where b.dircode like a.code || '%') "area" |
| | | from lf.sys_meta b where b.type in ('fbx', 'ifc') and b.dircode like a.code || '%') "area" |
| | | from lf.sys_dir a |
| | | where pid = 0 |
| | | order by code; |