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 | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml b/tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml
index 3a82fde..f50f94f 100644
--- a/tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml
+++ b/tms/src/main/resources/mapper/tms/TmsDispatchOrderMapper.xml
@@ -127,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>
@@ -153,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>
@@ -748,7 +748,7 @@
and tdd.driver_id = #{driverId}
- ORDER BY tdo.ok_time DESC
+ 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,
@@ -837,4 +837,4 @@
limit 50
</select>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.8.0