update 权限

This commit is contained in:
2023-03-09 13:55:13 +08:00
parent c43938e67b
commit fb7df0f83c
5 changed files with 54 additions and 12 deletions

View File

@@ -171,7 +171,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</if>
<!-- 数据范围过滤 -->
${dto.params.dataScope}
<if test="dto.merchantDeptIds != null and dto.merchantDeptIds.size() != 0">
and t2.dept_id in
<foreach collection="dto.merchantDeptIds" item="merchantDeptId" open="(" separator="," close=")">
#{merchantDeptId}
</foreach>
</if>
<if test="dto.stationDeptIds != null and dto.stationDeptIds.size() != 0">
and t3.dept_id in
<foreach collection="dto.stationDeptIds" item="stationDeptId" open="(" separator="," close=")">
#{stationDeptId}
</foreach>
</if>
group by t1.id
order by t1.sn
</select>