update 权限

This commit is contained in:
2023-03-09 11:36:02 +08:00
parent bf0afa58cd
commit a567e65142
4 changed files with 93 additions and 11 deletions

View File

@@ -318,8 +318,19 @@
<if test="stationDTO.publicFlag != null and stationDTO.publicFlag != ''">
and t1.public_flag = #{stationDTO.publicFlag,jdbcType=VARCHAR}
</if>
<!-- 数据范围过滤 -->
${stationDTO.params.dataScope}
<!-- 数据范围过滤 -->
<if test="stationDTO.merchantDeptIds != null and stationDTO.merchantDeptIds.size() != 0">
and t3.dept_id in
<foreach collection="stationDTO.merchantDeptIds" item="merchantDeptId" open="(" separator="," close=")">
#{merchantDeptId}
</foreach>
</if>
<if test="stationDTO.stationDeptIds != null and stationDTO.stationDeptIds.size() != 0">
and t1.dept_id in
<foreach collection="stationDTO.stationDeptIds" item="stationDeptId" open="(" separator="," close=")">
#{stationDeptId}
</foreach>
</if>
GROUP BY
t1.id,
t1.station_name,