java110
2023-05-30 0b3ff378a9faaf9d7a4831b7f0de67378fe0dfea
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>