From 1cbb3ed5c0c412cd407b7d32e7978f491857d670 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 31 七月 2023 14:43:52 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/SuYuanMapper.xml |   30 +++++++++++++++++++-----------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/src/main/resources/mapper/SuYuanMapper.xml b/src/main/resources/mapper/SuYuanMapper.xml
index b751ee2..7b2dc56 100644
--- a/src/main/resources/mapper/SuYuanMapper.xml
+++ b/src/main/resources/mapper/SuYuanMapper.xml
@@ -113,6 +113,14 @@
 		limit 1;
 	</select>
 
+	<select id="getSuYuan500MaxByFilter" resultMap="DistanceSuYuanResult">
+		select id, x, y, format(c, 2) "c", u, v
+		from ${tableName}
+		where ${filter}
+		order by c desc
+		limit 1;
+	</select>
+
 	<select id="getSuYuanById" resultMap="DistanceSuYuanResult">
 		select id, x, y, format(c, 2) "c", u, v
 		from ${tableName}
@@ -209,17 +217,17 @@
 	</select>
 	
 	<update id="createTable" parameterType="java.lang.String">
-       CREATE TABLE ${tableName}  (
-       	  `id` varchar(255) NOT NULL COMMENT '涓婚敭',
-		  `x` int(7) NULL DEFAULT NULL,
-		  `y` int(7) NULL DEFAULT NULL,
-		  `z` int(7) NULL DEFAULT NULL,
-		  `u` double NULL DEFAULT NULL,
-		  `v` double NULL DEFAULT NULL,
-		  `w` double NULL DEFAULT NULL,
-		  `c` double NULL DEFAULT NULL,
-		  PRIMARY KEY (`id`) USING BTREE 
-		) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; 
+		create table ${tablename}  (
+       	  	`id` varchar(10) not null comment '涓婚敭',
+		  	`x` int(3) null default null,
+		  	`y` int(3) null default null,
+		  	`z` int(2) null default null,
+		  	`u` double null default null,
+		  	`v` double null default null,
+		  	`w` double null default null,
+		  	`c` double null default null,
+		  	primary key (`id`) using btree
+		) engine = innodb character set = utf8 collate = utf8_general_ci row_format = dynamic;
     </update>
     
     <update id="update" >

--
Gitblit v1.9.3