Commit f09c3eb3 authored by congzhao's avatar congzhao

[建机]电子合同开发 买卖合同生成调整

parent 2f934257
...@@ -85,12 +85,15 @@ select * ...@@ -85,12 +85,15 @@ select *
and t1.ec_sign_type in ('INITIATE', 'SIGNING') and t1.ec_sign_type in ('INITIATE', 'SIGNING')
and t1.sign_type = 'ELE_SIGN' and t1.sign_type = 'ELE_SIGN'
and exists (select 1 from con_contract_ele_flow cf where cf.contract_id = t1.contract_id) and exists (select 1 from con_contract_ele_flow cf where cf.contract_id = t1.contract_id)
and exists (select 1 from con_contract_ele_signer csr where csr.contract_id = t1.contract_id and csr.sign_url is not null and csr.id_no = ${@id_no})
and ((${@account_type} = 'PE' and exists and ((${@account_type} = 'PE' and exists
(select 1 (select 1
from con_contract_bp ccb, con_contract_ele_signer cs from con_contract_bp ccb, con_contract_ele_signer cs
where ccb.bp_id = cs.bp_id where ccb.bp_id = cs.bp_id
and ccb.contract_id = t1.contract_id and ccb.contract_id = t1.contract_id
and ccb.bp_category in ('TENANT', 'GUARANTOR') and cs.esign_type = decode(t1.data_class,'NORMAL','CE','CHANGE_REQ','ET')
and ((ccb.bp_category in ('TENANT', 'GUARANTOR') and t1.data_class = 'NORMAL')
or ccb.bp_category = 'TENANT' and t1.data_class = 'CHANGE_REQ')
and (ccb.id_card_no = ${@id_no} or and (ccb.id_card_no = ${@id_no} or
(ccb.id_no_sp = ${@id_no} and ccb.sp_sign_flag = 'Y')))) or (ccb.id_no_sp = ${@id_no} and ccb.sp_sign_flag = 'Y')))) or
(${@account_type} = 'AG' and exists (${@account_type} = 'AG' and exists
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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