From fa0c90d5a05eac4e83b204b86311de7cb0e4b418 Mon Sep 17 00:00:00 2001
From: sen <sen@qq.com>
Date: 星期三, 17 十二月 2025 16:08:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/cwxt_master' into cwxt_master
---
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