From 9d7bfe8cf15f1b34a87351560f39662d9e141cce Mon Sep 17 00:00:00 2001
From: L <L@132>
Date: 星期二, 20 一月 2026 11:09:37 +0800
Subject: [PATCH] *

---
 src/main/resources/mapper/TaskWrkMapper.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/TaskWrkMapper.xml b/src/main/resources/mapper/TaskWrkMapper.xml
index 37eef49..7dcf83a 100644
--- a/src/main/resources/mapper/TaskWrkMapper.xml
+++ b/src/main/resources/mapper/TaskWrkMapper.xml
@@ -201,11 +201,38 @@
         <if test="status != null">
             and STATUS = #{status}
         </if>
+        <if test="barcode != null">
+            and BARCODE = #{barcode}
+        </if>
+        <if test="startPoint != null">
+            and (
+            START_POINT = #{startPoint}
+            or ORIGIN_START_POINT = #{startPoint}
+            )
+        </if>
+        <if test="targetPoint != null">
+            and (
+            TARGET_POINT = #{targetPoint}
+            or ORIGIN_TARGET_POINT = #{targetPoint}
+            )
+        </if>
         <if test="modiTimeStart != null ">
             <if test="modiTimeEnd != null ">
                 and MODI_TIME between #{modiTimeStart} and #{modiTimeEnd}
             </if>
         </if>
+        <if test="allField != null and allField != ''">
+            <bind name="searchPattern" value="'%' + allField + '%'" />
+            and (
+            WRK_NO LIKE #{searchPattern}
+            or TASK_NO LIKE #{searchPattern}
+            or BARCODE LIKE #{searchPattern}
+            or START_POINT LIKE #{searchPattern}
+            or TARGET_POINT LIKE #{searchPattern}
+            or ORIGIN_START_POINT LIKE #{searchPattern}
+            or ORIGIN_TARGET_POINT LIKE #{searchPattern}
+            )
+        </if>
     </sql>
 
 

--
Gitblit v1.9.1