Your Name
2023-07-11 d7d9b601b2e4fdb663375993e2cfbdbd363df421
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>
@@ -94,4 +96,25 @@
    </select>
    <select id="queryMaintainancePlanStaffsGroupCount" parameterType="Map" resultType="Map">
        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=",">
                #{item}
            </foreach>
        </if>
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}
        </if>
        group by t.plan_id
    </select>
</mapper>