From a687e2a3fdb5b3e8a71877ce3f2dbdb6827d4e41 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 08 十一月 2022 23:44:50 +0800
Subject: [PATCH] 优化加入保养任务
---
java110-db/src/main/resources/mapper/community/MaintainanceTaskV1ServiceDaoImplMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/MaintainanceTaskV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/MaintainanceTaskV1ServiceDaoImplMapper.xml
index dad121b..bdb3b41 100644
--- a/java110-db/src/main/resources/mapper/community/MaintainanceTaskV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/MaintainanceTaskV1ServiceDaoImplMapper.xml
@@ -24,8 +24,11 @@
authDesc,t.original_plan_user_id,t.original_plan_user_id originalPlanUserId,t.task_type,t.task_type
taskType,t.plan_id,t.plan_id planId,t.plan_end_time,t.plan_end_time
planEndTime,t.plan_user_name,t.plan_user_name planUserName,t.community_id,t.community_id
- communityId,t.act_user_id,t.act_user_id actUserId,t.task_id,t.task_id taskId,t.mps_id,t.mps_id mpsId
+ communityId,t.act_user_id,t.act_user_id actUserId,t.task_id,t.task_id taskId,t.mps_id,t.mps_id mpsId,
+ mp.plan_name planName,td.`name` stateName
from maintainance_task t
+ left join maintainance_plan mp on t.plan_id = mp.plan_id and mp.status_cd = '0'
+ left join t_dict td on t.state = td.status_cd and td.table_name = 'maintainance_task' and td.table_columns = 'state'
where 1 =1
<if test="planUserId !=null and planUserId != ''">
and t.plan_user_id= #{planUserId}
--
Gitblit v1.8.0