From bdd3b95a503393f8eb79279d0653f8f88dc8d992 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 15 三月 2024 15:29:37 +0800 Subject: [PATCH] 添加长度统计功能 --- src/main/resources/mapper/sys/ReportMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/sys/ReportMapper.xml b/src/main/resources/mapper/sys/ReportMapper.xml index 94e34ea..fe6adaf 100644 --- a/src/main/resources/mapper/sys/ReportMapper.xml +++ b/src/main/resources/mapper/sys/ReportMapper.xml @@ -284,9 +284,9 @@ <!-- 缁熻绠$嚎闀垮害 --> <select id="countLineLength" resultType="com.lf.server.entity.ctrl.CountEntity"> - select name "m1", code, + select name "m1", (select cast( coalesce(sum( ST_Length( ST_GeographyFromText( ST_AsText(geom) ) ) ) / 1000, 0) as decimal(20, 2) ) - from bs.m_pipeline b where b.dirid like a.code || '%') as "sizes" + from bs.m_pipeline b where b.dirid like a.code || '%') as "len" from lf.sys_dir a where pid = 0 order by a.code; -- Gitblit v1.9.3