From 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 25 五月 2023 18:07:08 +0800
Subject: [PATCH] optimize
---
java110-db/src/main/resources/mapper/community/MaintainancePlanV1ServiceDaoImplMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/MaintainancePlanV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/MaintainancePlanV1ServiceDaoImplMapper.xml
index aceda7e..c4f0e94 100644
--- a/java110-db/src/main/resources/mapper/community/MaintainancePlanV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/MaintainancePlanV1ServiceDaoImplMapper.xml
@@ -39,6 +39,10 @@
<if test="createUserId !=null and createUserId != ''">
and t.create_user_id= #{createUserId}
</if>
+ <if test="curTime !=null ">
+ and t.start_date < #{curTime}
+ and t.end_date > #{curTime}
+ </if>
<if test="endDate !=null and endDate != ''">
and t.end_date= #{endDate}
</if>
@@ -189,4 +193,6 @@
</select>
+
+
</mapper>
--
Gitblit v1.8.0