From dd50418315218979f8d596f34f185ae4a28adc4a Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 10 四月 2023 12:39:04 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/MainMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/mapper/MainMapper.xml b/src/main/resources/mapper/MainMapper.xml
index 822d4ca..d57b870 100644
--- a/src/main/resources/mapper/MainMapper.xml
+++ b/src/main/resources/mapper/MainMapper.xml
@@ -2,10 +2,10 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.terra.coal.mapper.MainMapper">
     <select id="selectDictTab" resultType="com.terra.coal.entity.CountEntity">
-        select ctype, sum(volume) "volume", sum(volume * density) "v1", sum(volume * density * gangue) "v2"
-        from public.coal54
-        where 1 = 1
+        select ctype, sum(volume) "volume", sum(coal_prod) "coal_prod", sum(gangue_prod) "gangue_prod", 0 "soil_prod"
+        from public.coal2000
+        where (top between #{top} and #{bottom} or bottom between #{top} and #{bottom}) and ST_Intersects(geom, ST_PolygonFromText(#{wkt}, 4490))
         group by ctype
-        order by ctype
+        order by ctype;
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3