@ -22,8 +22,7 @@
customer_staff_department
WHERE
del_flag = '0'
AND
<foreach item="departmentId" collection="deptIdList" open="(" separator="or" close=")">
<foreach item="departmentId" collection="deptIdList" open="AND (" separator="or" close=")">
department_id = #{departmentId}
</foreach>
</select>
@ -114,8 +114,7 @@
sr.del_flag = '0'
AND gsr.del_flag = '0'
<foreach item="staffId" collection="staffIdList" separator="or" open="(" close=")" index="">
<foreach item="staffId" collection="staffIdList" separator="or" open="AND (" close=")" index="">
sr.staff_id = #{staffId}