mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 站点查询计费模板增加权限校验
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user