From c11e6f07b031eea6c7de4c5508b8dbf0ee01d2c7 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期三, 01 四月 2026 10:08:08 +0800
Subject: [PATCH] 去除不同报价方案,不能添加相同【客户-路线-车型】数据
---
tms/src/main/resources/mapper/tms/TmsCarKeyDispatchMapper.xml | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tms/src/main/resources/mapper/tms/TmsCarKeyDispatchMapper.xml b/tms/src/main/resources/mapper/tms/TmsCarKeyDispatchMapper.xml
index 2d3ae1d..a27b09d 100644
--- a/tms/src/main/resources/mapper/tms/TmsCarKeyDispatchMapper.xml
+++ b/tms/src/main/resources/mapper/tms/TmsCarKeyDispatchMapper.xml
@@ -62,6 +62,15 @@
</where>
order by thisTab.id desc
</select>
+ <select id="selectTmsCarKeyDispatchdriverMobile" resultMap="TmsCarKeyDispatchResult">
+ <include refid="selectTmsCarKeyDispatchVo"/>
+ WHERE
+ thisTab.driver_mobile = #{driverCode}
+ AND thisTab.status = 0
+ AND thisTab.car_key_expiration_time >= NOW()
+ limit 1
+
+ </select>
<!-- 鏂板 -->
<insert id="insertTmsCarKeyDispatch" parameterType="com.ruoyi.tms.domain.TmsCarKeyDispatch" useGeneratedKeys="true" keyProperty="id">
--
Gitblit v1.8.0