From 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期五, 28 三月 2025 19:57:56 +0800
Subject: [PATCH] 修改bug

---
 UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/PhoneMapper.xml |   25 +++++--------------------
 1 files changed, 5 insertions(+), 20 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 0c52a1d..c491dd8 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
@@ -20,16 +20,10 @@
         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 != city">
-            and cityId in (select id from t_city where englishName in
-            <foreach collection="city" item="item" index="index" separator="," open="(" close=")">
-                #{item}
-            </foreach>
-            )
-        </if>
-        )
+        from t_phone where companyId in
+        <foreach collection="companyIds" item="item" index="index" separator="," open="(" close=")">
+            #{item}
+        </foreach>
     </select>
 
 
@@ -48,16 +42,7 @@
             and platform = #{platform}
         </if>
         <if test="platform != 1">
-            and companyId in (
-            select companyId from t_company_city where state = 1
-            <if test="null != city">
-                and cityId in (select id from t_city where englishName in
-                <foreach collection="city" item="item" index="index" separator="," open="(" close=")">
-                    #{item}
-                </foreach>
-                )
-            </if>
-            )
+            and companyId = #{companyId}
         </if>
     </select>
 

--
Gitblit v1.7.1