From 7185f65d9e4087fef18567365ea621845fe2659e Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 28 二月 2024 16:17:08 +0800
Subject: [PATCH] 使用JTS计算面积

---
 src/main/resources/mapper/sys/ReportMapper.xml |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/sys/ReportMapper.xml b/src/main/resources/mapper/sys/ReportMapper.xml
index 5fe8dc2..4bd3d62 100644
--- a/src/main/resources/mapper/sys/ReportMapper.xml
+++ b/src/main/resources/mapper/sys/ReportMapper.xml
@@ -122,7 +122,7 @@
     <!-- 鎸夐」鐩粺璁¢捇瀛旀暟鎹� -->
     <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
@@ -133,4 +133,12 @@
         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>
\ No newline at end of file

--
Gitblit v1.9.3