From 722db9e28a0c8e33d79621c66c0ecf1d60fcf0f6 Mon Sep 17 00:00:00 2001 From: luodangjia <luodangjia> Date: 星期三, 17 七月 2024 09:55:11 +0800 Subject: [PATCH] 7.17 --- UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml | 24 ++++++++++-------------- 1 files changed, 10 insertions(+), 14 deletions(-) diff --git a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml index 213317e..90270d6 100644 --- a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml +++ b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml @@ -22,14 +22,12 @@ companyId as companyId from t_phone where companyId in ( select companyId from t_company_city where state = 1 - <if test="null != province"> - and provinceCode = #{province} - </if> <if test="null != city"> - and cityCode = #{city} - </if> - <if test="null != code"> - and areaCode = #{code} + and cityId in (select id from t_city where englishName in + <foreach collection="city" item="item" index="index" separator="," open="(" close=")"> + #{item} + </foreach> + ) </if> ) </select> @@ -52,14 +50,12 @@ <if test="platform != 1"> and companyId in ( select companyId from t_company_city where state = 1 - <if test="null != province"> - and provinceCode = #{province} - </if> <if test="null != city"> - and cityCode = #{city} - </if> - <if test="null != code"> - and areaCode = #{code} + and cityId in (select id from t_city where englishName in + <foreach collection="city" item="item" index="index" separator="," open="(" close=")"> + #{item} + </foreach> + ) </if> ) </if> -- Gitblit v1.7.1