From 198153fd0e686392bc57bd4041c216e499c2de9c Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期三, 06 三月 2024 15:02:36 +0800 Subject: [PATCH] 11.27,9 --- 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 cacc3a4..a7a4536 100644 --- a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml +++ b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml @@ -171,4 +171,23 @@ and t1.name like concat("%",#{shopName},"%") </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 + from t_site t1 + left join t_store t2 on t1.storeId =t2.id + where t1.state=1 and t2.state=1 + <if test="provinceCode != null and provinceCode!=''"> + and t1.provinceCode = #{provinceCode} + </if> + <if test="cityCode != null and cityCode!=''"> + and t1.cityCode = #{cityCode} + </if> + <if test="operatorId != null and operatorId!=''"> + and t1.operatorId = #{operatorId} + </if> + <if test="storeName != null and storeName != ''"> + and t1.name like CONCAT('%',#{storeName},'%') + </if> + + </select> </mapper> \ No newline at end of file -- Gitblit v1.7.1