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/MaintainancePlanStaffV1ServiceDaoImplMapper.xml | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/MaintainancePlanStaffV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/MaintainancePlanStaffV1ServiceDaoImplMapper.xml
index 34023fe..b7e658d 100644
--- a/java110-db/src/main/resources/mapper/community/MaintainancePlanStaffV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/MaintainancePlanStaffV1ServiceDaoImplMapper.xml
@@ -21,6 +21,7 @@
communityId,t.staff_id,t.staff_id staffId,t.mps_id,t.mps_id mpsId
from maintainance_plan_staff t
where 1 =1
+ and t.status_cd = '0'
<if test="staffName !=null and staffName != ''">
and t.staff_name= #{staffName}
</if>
@@ -75,6 +76,7 @@
select count(1) count
from maintainance_plan_staff t
where 1 =1
+ and t.status_cd = '0'
<if test="staffName !=null and staffName != ''">
and t.staff_name= #{staffName}
</if>
@@ -100,6 +102,7 @@
select t.plan_id planId,count(1) staffCount
from maintainance_plan_staff t
where 1 =1
+ and t.status_cd = '0'
<if test="planIds !=null ">
and t.plan_id in
<foreach collection="planIds" item="item" open="(" close=")" separator=",">
@@ -110,6 +113,8 @@
and t.community_id= #{communityId}
</if>
+ group by t.plan_id
+
</select>
</mapper>
--
Gitblit v1.8.0