From 5af8ff1fbdc7183bf611f1971edf1f6e8f68c961 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 11 四月 2023 13:35:47 +0800
Subject: [PATCH] 1

---
 src/main/java/com/terra/coal/mapper/MainMapper.java |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/terra/coal/mapper/MainMapper.java b/src/main/java/com/terra/coal/mapper/MainMapper.java
index 68e0ccb..e0f59f9 100644
--- a/src/main/java/com/terra/coal/mapper/MainMapper.java
+++ b/src/main/java/com/terra/coal/mapper/MainMapper.java
@@ -1,13 +1,11 @@
 package com.terra.coal.mapper;
 
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.terra.coal.entity.CountEntity;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
 import org.springframework.stereotype.Repository;
 
-import java.math.BigDecimal;
 import java.util.List;
 
 /**
@@ -20,13 +18,13 @@
     /**
      * 鏍规嵁鑼冨洿缁熻
      *
-     * @param top
-     * @param bottom
-     * @param wkt
-     * @return
+     * @param top    椤堕珮
+     * @param bottom 搴曢珮
+     * @param wkt    WKT
+     * @return CountEntity闆嗗悎
      */
     @Select("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))" +
+            "where (top between #{bottom} and #{top} or bottom between #{bottom} and #{top}) and ST_Intersects(geom, ST_PolygonFromText(#{wkt}, 4490)) " +
             "group by ctype order by ctype")
     public List<CountEntity> countByRange(@Param("top") Double top, @Param("bottom") Double bottom, @Param("wkt") String wkt);
 }

--
Gitblit v1.9.3