From 4bc1453ffbf3fea4baa9107a9cf4a3996f410791 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 12 三月 2024 13:50:37 +0800 Subject: [PATCH] 修改按大类统计接口 --- src/main/resources/mapper/show/OneMapMapper.xml | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/show/OneMapMapper.xml b/src/main/resources/mapper/show/OneMapMapper.xml index c3591de..e8b1431 100644 --- a/src/main/resources/mapper/show/OneMapMapper.xml +++ b/src/main/resources/mapper/show/OneMapMapper.xml @@ -290,14 +290,15 @@ <!-- 鎸夊ぇ绫荤粺璁� --> <select id="countByMajor" resultType="com.lf.server.entity.ctrl.CountEntity"> - select '娴嬬粯锛圗SV锛�' "m1", '鏁板瓧绾垮垝鍥�' "m2", '骞虫柟鍗冪背' "m3", 0.0 "sizes" + select '娴嬬粯锛圗SV锛�' "m1", '鏁板瓧绾垮垝鍥�' "m2", '骞虫柟鍗冪背' "m3", coalesce(sum(area), 0) "sizes" from lf.sys_line_buffer union all select '娴嬬粯锛圗SV锛�' "m1", '鏁板瓧姝e皠褰卞儚鍥�' "m2", '骞虫柟鍗冪背' "m3", ( select coalesce(sum(b.area), 0) from lf.sys_meta b inner join lf.sys_dir c on b.dircode = c.code where c.name = '鏁板瓧姝e皠褰卞儚鍥�' and b.type in ('img', 'tif', 'tiff') ) "sizes" union all - select '娴嬬粯锛圗SV锛�' "m1", '绠$嚎鏁版嵁' "m2", '鍗冪背' "m3", cast( sum( st_length( st_geographyfromtext( st_astext(geom) ) ) ) / 1000 as decimal(12, 2) ) "sizes" from bs.m_pipeline + select '娴嬬粯锛圗SV锛�' "m1", '绠$嚎鏁版嵁' "m2", '鍗冪背' "m3", + cast( coalesce(sum( ST_Length( ST_GeographyFromText( ST_AsText(geom) ) ) ) / 1000, 0) as decimal(12, 2) ) "sizes" from bs.m_pipeline union all select '鍕樺療锛圗GE锛�' "m1", '鍕樻帰鐐�' "m2", '涓�' "m3", count(*) "sizes" from bs.s_explorationpoint union all @@ -308,4 +309,9 @@ union all select '鍦扮伨锛圗GD锛�' "m1", '鍦扮伨鐐�' "m2", '涓�' "m3", count(*) "sizes" from bd.b_geologic_hazard; </select> + + <!-- 鏌ヨ涓嚎缂撳啿鍖� --> + <select id="selectLineBuffer" resultType="java.lang.Integer"> + select fn_line_buffer(); + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3