From 6ee0c7abed78a110eacb8f2b92fece0d29bc2292 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期一, 07 七月 2025 17:12:12 +0800
Subject: [PATCH] bug修改

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

diff --git a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
index d36941f..637f694 100644
--- a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
+++ b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
@@ -192,7 +192,7 @@
         </if>
     </select>
     <select id="querySiteListOfpage" resultType="java.util.Map">
-        SELECT t1.id, t1.operatorId, t1.province, t1.city, t2.name,t1.ids,t1.name as siteName
+        SELECT t1.id, t2.operatorId, t1.province, t1.city, t2.name,t1.ids,t1.name as siteName
         ,t2.type as `type`
         from t_site t1
         left join t_store t2 on t1.storeId =t2.id
@@ -213,6 +213,30 @@
             and t1.storeId = #{storeId}
         </if>
     </select>
+    <select id="querySiteListOfpageOperator" resultType="java.util.Map">
+        SELECT t1.id, t2.operatorId, t1.province, t1.city, t2.name,t1.ids,t1.name as siteName
+        ,t2.type as `type`
+        from t_site t1
+        left join t_store t2 on t1.storeId =t2.id
+        where t1.state=1 and t2.state=1 and t1.isCanBeBooked = 0 and t1.reservation=0
+        <if test="provinceCode != null and provinceCode!=''">
+            and t1.provinceCode = #{provinceCode}
+        </if>
+        <if test="cityCode != null and cityCode!=''">
+            and t1.cityCode = #{cityCode}
+        </if>
+
+        <if test="storeName != null and storeName != ''">
+            and t2.name like CONCAT('%',#{storeName},'%')
+        </if>
+        <if test="storeIds != null and storeIds.size()>0">
+            AND t1.storeId IN
+            <foreach collection="storeIds" separator="," item="id" open="(" close=")">
+                #{id}
+            </foreach>
+        </if>
+
+    </select>
 
     <select id="listStoreAll" resultType="map">
         select

--
Gitblit v1.7.1