update 站点查询计费模板增加权限校验

This commit is contained in:
DESKTOP-D9QDT1P\JS-ZZA
2023-03-13 11:43:04 +08:00
parent 9480a7d6d9
commit 1687e9bd92
3 changed files with 17 additions and 2 deletions

View File

@@ -298,6 +298,7 @@
t6.apply_time AS valleyApplyDate
from
pile_billing_template t2
left join pile_station_info t1 on t1.id = t2.station_id
left JOIN pile_billing_detail t3 ON t3.template_code = t2.template_code AND t3.time_type = '1'
left JOIN pile_billing_detail t4 ON t4.template_code = t2.template_code AND t4.time_type = '2'
left JOIN pile_billing_detail t5 ON t5.template_code = t2.template_code AND t5.time_type = '3'
@@ -305,6 +306,13 @@
where
t2.del_flag = '0'
and t2.station_id = #{stationId,jdbcType=VARCHAR}
<!--数据范围过滤-->
<if test="stationDeptIds != null and stationDeptIds.size() != 0">
and t1.dept_id in
<foreach collection="stationDeptIds" item="stationDeptId" open="(" separator="," close=")">
#{stationDeptId,jdbcType=VARCHAR}
</foreach>
</if>
order by t2.publish_time desc
</select>