From b2b5bdf6f42597e582da96aa56707e1f68d3936e Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 10 五月 2022 11:41:44 +0800
Subject: [PATCH] 优化 费用

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

diff --git a/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
index 857653d..4946cc5 100755
--- a/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
@@ -121,8 +121,9 @@
         inspectionStateName,
         ipl.inspection_plan_name,ipl.inspection_plan_name inspectionPlanName,ir.route_name,ir.route_name routeName,
         it.plan_user_name,it.plan_user_name planUserName,it.act_user_name,it.act_user_name actUserName,td4.name,td4.name
-        signTypeName,td5.name taskStateName
+        signTypeName,td5.name taskStateName,ip.item_id itemId
         from inspection_task_detail t
+        LEFT JOIN inspection_point ip on t.inspection_id = ip.inspection_id and ip.status_cd = '0'
         left join t_dict td1 on t.state = td1.status_cd and td1.table_name = 'inspection_task_detail' and
         td1.table_columns = 'state'
         left join t_dict td2 on t.patrol_type = td2.status_cd and td2.table_name = 'inspection_task_detail' and
@@ -188,6 +189,9 @@
         <if test="planUserName !=null and planUserName != ''">
             and it.plan_user_name= #{planUserName}
         </if>
+        <if test="planUserId !=null and planUserId != ''">
+            and it.plan_user_id= #{planUserId}
+        </if>
         <if test="inspectionPlanName !=null and inspectionPlanName != ''">
             and ipl.inspection_plan_name= #{inspectionPlanName}
         </if>
@@ -205,6 +209,9 @@
         </if>
         <if test="nowTime != null">
             and t.create_time &lt; #{nowTime}
+        </if>
+        <if test="qrCodeTime != null">
+            and t.create_time &gt; #{qrCodeTime}
         </if>
         <if test="inspectionStartTime !=null and inspectionStartTime != ''">
             and t.inspection_time &gt;= #{inspectionStartTime}
@@ -335,6 +342,9 @@
         <if test="planUserName !=null and planUserName != ''">
             and it.plan_user_name= #{planUserName}
         </if>
+        <if test="planUserId !=null and planUserId != ''">
+            and it.plan_user_id= #{planUserId}
+        </if>
         <if test="inspectionPlanName !=null and inspectionPlanName != ''">
             and ipl.inspection_plan_name= #{inspectionPlanName}
         </if>

--
Gitblit v1.8.0