From 0849670f03eaa4b5de71c11558e6baf6ac8d2586 Mon Sep 17 00:00:00 2001
From: 1098226878 <1098226878@qq.com>
Date: 星期二, 14 九月 2021 10:27:50 +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 < #{nowTime}
</if>
+ <if test="inspectionStartTime !=null and inspectionStartTime != ''">
+ and t.inspection_time >= #{inspectionStartTime}
+ </if>
+ <if test="inspectionEndTime !=null and inspectionEndTime != ''">
+ and t.inspection_time <= #{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 >= #{inspectionStartTime}
+ </if>
+ <if test="inspectionEndTime !=null and inspectionEndTime != ''">
+ and t.inspection_time <= #{inspectionEndTime}
+ </if>
</select>
</mapper>
--
Gitblit v1.8.0