Commit aa39501d authored by suhuiguang's avatar suhuiguang

refactor(tcm):两员配备

1.两个规定只统计省内企业 2.三型制度只统计省内企业 3.巡检任务只生成省内企业的
parent 212bbefa
......@@ -30,6 +30,7 @@
LEFT JOIN ${staticTableName} psd ON ei.use_code = psd.unit_code
where
ei.is_delete = '0'
and ei.data_sources = '陕西省内企业'
GROUP BY
ei.use_code
</select>
......
......@@ -236,6 +236,7 @@
AND pc.org_code IS NOT NULL
AND tzei.is_delete = '0'
AND pc.is_deleted = 'f'
and tzei.data_sources = '陕西省内企业'
AND (tzei.unit_type <![CDATA[<>]]> '检验机构' OR tzei.unit_type <![CDATA[<>]]> '检测机构')
AND tui.amos_user_id IN (SELECT USER_ID FROM privilege_group_user WHERE GROUP_SEQ = #{groupId})
</select>
......
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