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/InspectionPlanServiceDaoImplMapper.xml |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml
index 734d1d5..ea04891 100755
--- a/java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml
@@ -161,6 +161,8 @@
         t.end_time endTime,
         t.sign_type signType,
         t.start_time startTime,
+        t.end_date endDate,
+        t.start_date startDate,
         t.create_user_id createUserId,
         t.create_user_name createUserName,
         t.inspection_plan_id inspectionPlanId,
@@ -169,6 +171,10 @@
         t.can_reexamine canReexamine,
         t.b_id bId,
         t.create_time createTime,
+        t.inspection_workday inspectionWorkday,
+        t.inspection_month inspectionMonth,
+        t.inspection_day inspectionDay,
+        t.before_time beforeTime,
         d.name stateName,
         c.name inspectionPlanPeriodName,
         i.name signTypeName
@@ -195,7 +201,9 @@
         <if test="endTime !=null ">
             and t.end_time= #{endTime}
         </if>
-
+        <if test="endDate !=null ">
+            and t.end_date= #{endDate}
+        </if>
         <if test="signType !=null and signType != ''">
             and t.sign_type= #{signType}
         </if>
@@ -205,9 +213,12 @@
         <if test="startTime !=null ">
             and t.start_time= #{startTime}
         </if>
+        <if test="startDate !=null ">
+            and t.start_date= #{startDate}
+        </if>
         <if test="curTime !=null ">
-            and t.start_time &lt; #{curTime}
-            and t.end_time &gt; #{curTime}
+            and t.start_date &lt; #{curTime}
+            and t.end_date &gt; #{curTime}
         </if>
         <if test="createUserId !=null and createUserId != ''">
             and t.create_user_id= #{createUserId}

--
Gitblit v1.8.0