From 486b62e149dab20c2bbfcdd6f262dd8f88a317d9 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期二, 13 一月 2026 17:13:28 +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