From ba87fd72f14c5ed0caf14e9d8ff116d254a8c113 Mon Sep 17 00:00:00 2001
From: zhangback <zhangback@163.com>
Date: 星期四, 16 四月 2026 10:11:32 +0800
Subject: [PATCH] 新增线上配置
---
tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml b/tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml
index 6941f33..f50f94f 100644
--- a/tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml
+++ b/tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml
@@ -115,6 +115,7 @@
<result property="seamlessNumber" column="seamless_number" />
<result property="seamlessSupplierId" column="seamless_supplier_id" />
<result property="seamlessSupplierName" column="seamless_supplier_name" />
+ <result property="notes" column="notes" />
</resultMap>
@@ -126,7 +127,7 @@
</sql>
<sql id="whereCondition">
- <if test="dispatchNo != null and dispatchNo != ''"> and thisTab.dispatch_no = #{dispatchNo}</if>
+ <if test="dispatchNo != null and dispatchNo != ''"> and thisTab.dispatch_no like concat('%', #{dispatchNo}, '%')</if>
<if test="customerId != null "> and thisTab.customer_id = #{customerId}</if>
<if test="customerCode != null and customerCode != ''"> and thisTab.customer_code = #{customerCode}</if>
<if test="customerName != null and customerName != ''"> and thisTab.customer_name like concat('%', #{customerName}, '%')</if>
@@ -152,7 +153,7 @@
<if test="assistantDriverName != null and assistantDriverName != ''"> and thisTab.assistant_driver_name like concat('%', #{assistantDriverName}, '%')</if>
<if test="requiredVehicleTypes != null and requiredVehicleTypes != ''"> and thisTab.required_vehicle_types = #{requiredVehicleTypes}</if>
<if test="vehicleId != null "> and thisTab.vehicle_id = #{vehicleId}</if>
- <if test="licensePlate != null and licensePlate != ''"> and thisTab.license_plate = #{licensePlate}</if>
+ <if test="licensePlate != null and licensePlate != ''"> and thisTab.license_plate like concat('%', #{licensePlate}, '%')</if>
<if test="shipperId != null "> and thisTab.shipper_id = #{shipperId}</if>
<if test="shipperName != null and shipperName != ''"> and thisTab.shipper_name like concat('%', #{shipperName}, '%')</if>
<if test="shipperMobile != null and shipperMobile != ''"> and thisTab.shipper_mobile = #{shipperMobile}</if>
@@ -594,6 +595,7 @@
<if test="seamlessNumber != null">seamless_number = #{seamlessNumber},</if>
<if test="seamlessSupplierId != null">seamless_supplier_id = #{seamlessSupplierId},</if>
<if test="seamlessSupplierName != null">seamless_supplier_name = #{seamlessSupplierName},</if>
+ <if test="notes != null">notes = #{notes},</if>
</trim>
where id = #{id}
</update>
@@ -745,7 +747,8 @@
</if>
- and tdd.driver_id = #{driverId};
+ and tdd.driver_id = #{driverId}
+ ORDER BY tdd.id DESC
</select>
<select id="selectAssignedItineraryDetail" resultType="com.ruoyi.tms.domain.vo.DriverDispatchVo">
SELECT tdo.dispatch_no, tdo.customer_name, tdo.license_plate,tdo.transport_line,tdo.status,tdo.latest_departure,
@@ -834,4 +837,4 @@
limit 50
</select>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.8.0