From ed02b20b31e013159c55ab14b81772e41b36649c Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期六, 26 七月 2025 17:37:59 +0800
Subject: [PATCH] 修改下单逻辑和抢单等相关逻辑

---
 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