Commit cbde5c77 authored by suhuiguang's avatar suhuiguang

fix(jyjc): 报检规则4.0开发

1.数据权限筛选单位错误bug
parent e381cbd4
......@@ -171,7 +171,7 @@
<when test="agencyClassify == 'JYJGFL_SBGY'">
and (
tzjia.inspection_unit_code = #{companyCode}
or EXISTS (select 1 from tz_base_enterprise_info e where e.regulatory_labels like '%一级管控(承压)%' and e.use_unit_code = tzjia.inspection_unit_code and tzjia.equip_classify in ('1000','2000','8000'))
or EXISTS (select 1 from tz_base_enterprise_info e where e.regulatory_labels like '%一级管控(承压)%' and e.use_unit_code = tzjia.application_unit_code and tzjia.equip_classify in ('1000','2000','8000'))
or EXISTS (select 1 from tz_base_enterprise_info e where e.regulatory_labels like '%一级管控(承压)%' and e.use_unit_code = tzjia.use_unit_credit_code and tzjia.equip_classify in ('1000','2000','8000'))
)
</when>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment