Commit 3f99ec61 authored by hezhuozhi's avatar hezhuozhi

历史有证气瓶导入只能登记到历史使用登记证下

parent 349e3ee5
......@@ -445,9 +445,9 @@
LEFT JOIN idx_biz_jg_register_info ri ON ri.USE_ORG_CODE=tjur.use_registration_code
LEFT JOIN idx_biz_jg_use_info ui on ui."RECORD" = ri."RECORD"
WHERE
ui."DATA_SOURCE" like 'jg_his%'
and ui."DATA_SOURCE" not like 'jg_his_black%'
and (ri."USE_ORG_CODE" is not null or ri."USE_ORG_CODE" != '')
ui.DATA_SOURCE like 'jg_his%'
and ui.DATA_SOURCE not like 'jg_his_black%'
and (ri.USE_ORG_CODE is not null or ri.USE_ORG_CODE != '')
and tjur.is_delete=0
and tjur.certificate_status='已登记'
and tjur.use_unit_credit_code=#{useUnitCreditCode}
......
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