From f42983b35c738a28ed4b9d1732d1045c5f2a19bb Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期日, 09 五月 2021 16:57:12 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 93487dc..623f49c
--- a/java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml
@@ -152,7 +152,6 @@
t.remark,
t.status_cd statusCd,
t.end_time endTime,
- t.staff_name staffName,
t.sign_type signType,
t.start_time startTime,
t.create_user_id createUserId,
@@ -183,15 +182,20 @@
<if test="statusCd !=null and statusCd != ''">
and t.status_cd= #{statusCd}
</if>
- <if test="endTime !=null and endTime != ''">
+ <if test="endTime !=null ">
and t.end_time= #{endTime}
</if>
<if test="signType !=null and signType != ''">
and t.sign_type= #{signType}
</if>
- <if test="startTime !=null and startTime != ''">
+ <if test="startTime !=null ">
and t.start_time= #{startTime}
+ </if>
+
+ <if test="curTime !=null ">
+ and t.start_time < #{curTime}
+ and t.end_time > #{curTime}
</if>
<if test="createUserId !=null and createUserId != ''">
and t.create_user_id= #{createUserId}
@@ -304,9 +308,6 @@
and t.b_id= #{bId}
</if>
- <if test="keyWord !=null and keyWord != ''">
- and (t.inspection_plan_name like concat('%',#{keyWord},'%') or t.staff_name like concat('%',#{keyWord},'%'))
- </if>
</select>
--
Gitblit v1.8.0