| | |
| | | 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> |
| | |
| | | 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> |
| | |
| | | |
| | | </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> |