From f9765f1d34d916a5cbf9051819f4eda430fe70e1 Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期二, 24 十月 2023 18:48:46 +0800
Subject: [PATCH] 门店权限  门店模块

---
 cloud-server-management/src/main/resources/mapper/TStoreMapper.xml |   19 +++++++++++++++++++
 1 files changed, 19 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 8e36a41..b82b63f 100644
--- a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
+++ b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
@@ -142,4 +142,23 @@
 
 
     </select>
+    <select id="listAllStore" resultType="com.dsh.guns.modular.system.model.TStoreListVo">
+        select t1.*,t2.name userName,t2.phone userPhone,t3.name yysName from t_store t1 left join sys_user t2 on t1.storeStaffId = t2.id left  join t_operator t3 on t1.operatorId = t3.id
+        where t1.id =#{id}
+        <if test="provinceCode !=null and provinceCode !=''">
+            and t1.provinceCode = #{provinceCode}
+        </if>
+        <if test="cityCode !=null and cityCode !=''">
+            and t1.cityCode = #{cityCode}
+        </if>
+        <if test="name !=null and name !=''">
+            and t2.name like concat("%",#{name},"%")
+        </if>
+        <if test="phone !=null and phone !=''">
+            and t2.phone like concat("%",#{phone},"%")
+        </if>
+        <if test="shopName !=null and shopName !=''">
+            and t1.name like concat("%",#{shopName},"%")
+        </if>
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.7.1