From 4b0997d82281c39a6a6afc27fbb222b9f44a66f0 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 15 八月 2024 20:01:38 +0800
Subject: [PATCH] 优化代码

---
 pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml
index 0bd9d4d..4bcae20 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml
@@ -198,10 +198,10 @@
             <if test="lineName != null and lineName != '' ">
                 and ll.name like concat('%', #{lineName}, '%')
             </if>
-            <if test="startTime != null and startTime !=''">
+            <if test="startTime != null">
                 and l.start_time <![CDATA[ > ]]> #{startTime}
             </if>
-            <if test="endTime != null and endTime !=''">
+            <if test="endTime != null">
                 and l.start_time <![CDATA[ < ]]> #{endTime}
             </if>
             <if test="userId != null and userId !=''">
@@ -265,10 +265,10 @@
             <if test="lineName != null and lineName != '' ">
                 and ll.name like concat('%', #{lineName}, '%')
             </if>
-            <if test="startTime != null and startTime !=''">
+            <if test="startTime != null">
                 and l.start_time <![CDATA[ > ]]> #{startTime,jdbcType=TIMESTAMP}
             </if>
-            <if test="endTime != null and endTime !=''">
+            <if test="endTime != null">
                 and l.start_time <![CDATA[ < ]]> #{endTime,jdbcType=TIMESTAMP}
             </if>
             <if test="userId != null and userId !=''">

--
Gitblit v1.8.0