Commit 253119a2 authored by jiacheng.mao's avatar jiacheng.mao

I-7543历史合同无法在微信端显示

parent 8e8e5152
......@@ -31,7 +31,7 @@
t1.contract_status,
(select v.code_value_name
from sys_code_values_v v
where v.code = decode(t1.sign_type,
where v.code = decode(nvl(t1.sign_type,'PAPER_SIGN'),
'PAPER_SIGN',
'CON_PAPER_SIGN_STATUS',
'ELE_SIGN',
......@@ -98,11 +98,11 @@
and rownum = 1) sign_url
from con_contract t1
where t1.data_class = 'NORMAL'
and t1.sign_contract_status = decode(t1.contract_status,'NEW','SIGN',t1.sign_contract_status)
and nvl(t1.sign_contract_status,'SIGN') = decode(t1.contract_status,'NEW','SIGN',nvl(t1.sign_contract_status,'SIGN'))
and t1.contract_status in
(select v.code_value
from sys_code_values_v v
where v.code = decode(t1.sign_type,
where v.code = decode(nvl(t1.sign_type,'PAPER_SIGN'),
'PAPER_SIGN',
'CON_PAPER_SIGN_STATUS',
'ELE_SIGN',
......
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