From b3221701c387ab536adf66cf315c75d3b429fe04 Mon Sep 17 00:00:00 2001
From: 刘帅 <rr.iii@qq.com>
Date: 星期四, 17 九月 2026 09:38:06 +0800
Subject: [PATCH] feat&bug:文档问题修改及优化

---
 cloud-server-management/src/main/resources/mapper/TStoreMapper.xml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
index b3e7dbb..7c498eb 100644
--- a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
+++ b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
@@ -61,7 +61,7 @@
     </select>
     <select id="queryProvince" resultType="map">
         select * from (
-        select provinceCode as code, province as name from t_store where state = 1
+        select provinceCode as code, MIN(province) as name from t_store where state = 1
          <if test="null != cityCode and '' != cityCode">
              and cityCode = #{cityCode}
          </if>
@@ -72,7 +72,7 @@
 
     <select id="queryCity" resultType="map">
         select * from (
-        select cityCode as code, city as name from t_store where state = 1 and provinceCode = #{provinceCode}
+        select cityCode as code, MIN(city) as name from t_store where state = 1 and provinceCode = #{provinceCode}
         <if test="null != cityCode and '' != cityCode">
             and cityCode = #{cityCode}
         </if>
@@ -82,7 +82,7 @@
     <select id="queryCity2" resultType="map">
 
         select * from (
-        select cityCode as code, city as name
+        select cityCode as code, MIN(city) as name
         from t_store where state = 1 and provinceCode = #{provinceCode}
         <if test="null != cityCode and '' != cityCode">
             and cityCode = #{cityCode}
@@ -99,7 +99,7 @@
 
     <select id="queryCity1" resultType="map">
         select * from (
-        select cityCode as code, city as name from t_store where state = 1
+        select cityCode as code, MIN(city) as name from t_store where state = 1
         group by cityCode
         ) as aa order by aa.code
     </select>
@@ -280,4 +280,4 @@
             #{item}
         </foreach>
     </select>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.7.1