From aff43f8ebe077b9daf097e1c583304c0252bf440 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 24 十月 2023 18:49:28 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai --- 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