From 9e8ce689c89c4b03bfc67a60d7da13a7d593725a Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 24 十月 2023 20:33:41 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai --- cloud-server-other/src/main/resources/mapper/GameMapper.xml | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/cloud-server-other/src/main/resources/mapper/GameMapper.xml b/cloud-server-other/src/main/resources/mapper/GameMapper.xml index 81f95c4..16290e2 100644 --- a/cloud-server-other/src/main/resources/mapper/GameMapper.xml +++ b/cloud-server-other/src/main/resources/mapper/GameMapper.xml @@ -10,24 +10,26 @@ LEFT JOIN t_store st ON ga.storeId = st.id LEFT JOIN t_operator op ON ga.operationId = op.id LEFT JOIN t_site si on ga.siteId = si.id - <where> - <if test="provinceCode!=null and provinceCode!=''"> - ga.provinceCode = #{provinceCode} + where 1=1 + <if test ="query.type==3"> + and st.id =#{query.id} + </if> + <if test="query.provinceCode!=null and query.provinceCode!=''"> + and ga.provinceCode = #{query.provinceCode} </if> - <if test="cityCode!=null and cityCode!=''"> - and ga.cityCode = #{cityCode} + <if test="query.cityCode!=null and query.cityCode!=''"> + and ga.cityCode = #{query.cityCode} </if> - <if test="store!=null and store!=''"> - and st.`name` like concat('%',#{store},'%') + <if test="query.store!=null and query.store!=''"> + and st.`name` like concat('%',#{query.store},'%') </if> - <if test="site!=null and site!=''"> - and si.`name` like concat('%',#{site},'%') + <if test="query.site!=null and query.site!=''"> + and si.`name` like concat('%',#{query.site},'%') </if> - </where> </select> -- Gitblit v1.7.1