From d22e7172537d9a658e83dbe76bb267c7611642c1 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期一, 11 三月 2024 17:02:28 +0800
Subject: [PATCH] bug修改

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

diff --git a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
index 6cffee2..86ea7ec 100644
--- a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
+++ b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
@@ -79,6 +79,24 @@
         group by cityCode
         ) as aa order by aa.code
     </select>
+    <select id="queryCity2" resultType="map">
+
+        select * from (
+        select cityCode as code, city as name
+        from t_store where state = 1 and provinceCode = #{provinceCode}
+        <if test="null != cityCode and '' != cityCode">
+            and cityCode = #{cityCode}
+        </if>
+        <if test="null != type">
+        and `type` = #{type}
+        </if>
+        <if test="null != operatorId">
+        and operatorId = #{operatorId}
+        </if>
+        group by cityCode
+        ) as aa order by aa.code
+    </select>
+
     <select id="queryCity1" resultType="map">
         select * from (
         select cityCode as code, city as name from t_store where state = 1

--
Gitblit v1.7.1