From a1d08140b0988102e678cba5c4736b598b314cec Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期一, 17 六月 2024 22:58:22 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml
index 9913f42..44b8cfd 100755
--- a/java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml
@@ -144,10 +144,10 @@
         <if test="originalPlanUserId !=null and originalPlanUserId != ''">
             and t.original_plan_user_id= #{originalPlanUserId}
         </if>
-        <if test="startTime != null">
+        <if test="startTime != null and startTime != ''">
             and t.act_ins_time &gt;= #{startTime}
         </if>
-        <if test="endTime != null">
+        <if test="endTime != null and endTime != ''">
             and t.act_ins_time &lt;= #{endTime}
         </if>
         <if test="planInsTime !=null ">
@@ -201,7 +201,7 @@
                 #{item}
             </foreach>
         </if>
-        <if test="scopeTime !=null ">
+        <if test="scopeTime !=null and scopeTime != ''">
             and t.create_time &lt; #{scopeTime}
             and t.create_time &gt; #{createTime}
         </if>
@@ -294,10 +294,10 @@
         <if test="originalPlanUserId !=null and originalPlanUserId != ''">
             and t.original_plan_user_id= #{originalPlanUserId}
         </if>
-        <if test="startTime != null">
+        <if test="startTime != null and startTime != ''">
             and t.act_ins_time &gt;= #{startTime}
         </if>
-        <if test="endTime != null">
+        <if test="endTime != null and endTime != ''">
             and t.act_ins_time &lt;= #{endTime}
         </if>
         <if test="planInsTime !=null ">

--
Gitblit v1.8.0