From cddcf22a61489ee9c2dfee169d817ccd66f95430 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 03 九月 2021 02:23:43 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
index b8b59cc..857653d 100755
--- a/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
@@ -206,6 +206,12 @@
         <if test="nowTime != null">
             and t.create_time &lt; #{nowTime}
         </if>
+        <if test="inspectionStartTime !=null and inspectionStartTime != ''">
+            and t.inspection_time &gt;= #{inspectionStartTime}
+        </if>
+        <if test="inspectionEndTime !=null and inspectionEndTime != ''">
+            and t.inspection_time &lt;= #{inspectionEndTime}
+        </if>
         order by t.sort_number desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
@@ -344,5 +350,11 @@
         <if test="inspectionId !=null and inspectionId != ''">
             and t.inspection_id= #{inspectionId}
         </if>
+        <if test="inspectionStartTime !=null and inspectionStartTime != ''">
+            and t.inspection_time &gt;= #{inspectionStartTime}
+        </if>
+        <if test="inspectionEndTime !=null and inspectionEndTime != ''">
+            and t.inspection_time &lt;= #{inspectionEndTime}
+        </if>
     </select>
 </mapper>

--
Gitblit v1.8.0