From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能
---
java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
index 6caa6fc..9922ef5 100755
--- a/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml
@@ -21,7 +21,8 @@
taskId,t.task_detail_id,t.task_detail_id taskDetailId,t.patrol_type,t.description,t.patrol_type patrolType,
t.longitude,t.latitude,t.inspection_time,t.inspection_time inspectionTime,t.inspection_state,
t.inspection_state inspectionState,t.point_start_time,t.point_start_time
- pointStartTime,t.point_end_time,t.point_end_time pointEndTime,t.sort_number,t.sort_number sortNumber,t.act_user_id,t.act_user_id actUserId,t.act_user_name,t.act_user_name actUserName
+ pointStartTime,t.point_end_time,t.point_end_time pointEndTime,t.sort_number,t.sort_number sortNumber,t.act_user_id,
+ t.act_user_id actUserId,t.act_user_name,t.act_user_name actUserName,t.send_flag sendFlag
from business_inspection_task_detail t
where 1 =1
<if test="inspectionId !=null and inspectionId != ''">
@@ -120,8 +121,8 @@
t.inspection_time inspectionTime,t.inspection_state,t.inspection_state inspectionState,td3.name
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,ip.item_id itemId
+ it.plan_user_name,it.plan_user_name planUserName,it.plan_user_id,it.plan_user_id planUserId,it.act_user_name,it.act_user_name actUserName,td4.name,td4.name
+ signTypeName,td5.name taskStateName,ip.item_id itemId,t.send_flag sendFlag
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
@@ -189,6 +190,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>
@@ -207,11 +211,17 @@
<if test="nowTime != null">
and t.create_time < #{nowTime}
</if>
+ <if test="qrCodeTime != null">
+ and t.create_time > #{qrCodeTime}
+ </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>
+ <if test="sendFlag !=null and sendFlag != ''">
+ and t.send_flag = #{sendFlag}
</if>
order by t.sort_number desc
<if test="page != -1 and page != null ">
@@ -263,6 +273,9 @@
</if>
<if test="actUserName !=null and actUserName != ''">
, t.act_user_name= #{actUserName}
+ </if>
+ <if test="sendFlag !=null and sendFlag != ''">
+ , t.send_flag = #{sendFlag}
</if>
where 1=1
<if test="bId !=null and bId != ''">
@@ -336,6 +349,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>
@@ -357,5 +373,8 @@
<if test="inspectionEndTime !=null and inspectionEndTime != ''">
and t.inspection_time <= #{inspectionEndTime}
</if>
+ <if test="sendFlag !=null and sendFlag != ''">
+ and t.send_flag = #{sendFlag}
+ </if>
</select>
</mapper>
--
Gitblit v1.8.0