@ -134,9 +134,11 @@
WHERE
del_flag = '0'
AND customer_id = #{customerId}
<if test="gridIdList != null and gridIdList.size() > 0">
<foreach collection="gridIdList" item="gridId" open="AND id IN (" separator="," close=")">
#{gridId}
</foreach>
</if>
</select>
</mapper>
@ -212,9 +212,11 @@
<if test="agencyIdList != null and agencyIdList.size() > 0">
<foreach collection="agencyIdList" item="agencyId" open="AND id IN (" separator="," close=")">
#{agencyId}
@ -1005,9 +1005,11 @@
AND gsr.del_flag = '0'
AND gsr.role_name = '网格员'
AND cs.customer_id = #{customerId}
<if test="staffIdList != null and staffIdList.size() > 0">
<foreach collection="staffIdList" item="staffId" open="AND cs.USER_ID IN (" separator="," close=")">
#{staffId}