wujianwei
2026-03-09 b2f2deb03b08225f6884ddde392cb59c472e9e10
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 &gt;= NOW()
        limit 1
    </select>
    <!-- 新增 -->
    <insert id="insertTmsCarKeyDispatch" parameterType="com.ruoyi.tms.domain.TmsCarKeyDispatch" useGeneratedKeys="true" keyProperty="id">