From 729a5a0592cac7750e8b476c5fcb25bfc3ff8d25 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期日, 27 七月 2025 09:06:31 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/QianYunTong --- DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml | 24 +++++++++--------------- 1 files changed, 9 insertions(+), 15 deletions(-) diff --git a/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml b/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml index fba4dca..e1a12d1 100644 --- a/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml +++ b/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml @@ -9,6 +9,7 @@ <result column="platform" property="platform"/> <result column="phone" property="phone" /> <result column="companyId" property="companyId"/> + <result column="openCityId" property="openCityId"/> </resultMap> @@ -19,19 +20,9 @@ type as type, platform as platform, phone as phone, - 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} - </if> - ) + companyId as companyId, + openCityId as openCityId + from t_phone where openCityId = #{openCityId} </select> @@ -77,8 +68,11 @@ <if test="null != type"> and type = #{type} </if> - <if test="null != companyId"> - and companyId = #{companyId} + <if test="null != platform"> + and platform = #{platform} + </if> + <if test="null != openCityId"> + and openCityId = #{openCityId} </if> </select> </mapper> \ No newline at end of file -- Gitblit v1.7.1