Commit f35e2887 authored by stone's avatar stone

[fix]修改bug

parent e1691d49
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
--v.due_amount- NVL(v.applied_pay_amount,0) AS amount, --v.due_amount- NVL(v.applied_pay_amount,0) AS amount,
v.bp_category_desc, v.bp_category_desc,
v.search_term_1, v.search_term_1,
v.bp_bank_account_id_n,
v.bp_bank_account_id,
'' bank_full_name, --宏菱需要置为空 bank_key '' bank_full_name, --宏菱需要置为空 bank_key
v.irr, v.irr,
v.application_type_n, v.application_type_n,
...@@ -56,6 +54,8 @@ ...@@ -56,6 +54,8 @@
(SELECT hbbc.bank_account_name (SELECT hbbc.bank_account_name
FROM hls_bp_master_bank_account hbbc FROM hls_bp_master_bank_account hbbc
WHERE hbbc.bp_id=v.bp_id_agent_level1) bp_bank_account_name, WHERE hbbc.bp_id=v.bp_id_agent_level1) bp_bank_account_name,
--代理店账户
v.bp_bank_account_id,
--代理店账号 --代理店账号
(SELECT hbbc.bank_account_num (SELECT hbbc.bank_account_num
FROM hls_bp_master_bank_account hbbc FROM hls_bp_master_bank_account hbbc
...@@ -80,6 +80,9 @@ ...@@ -80,6 +80,9 @@
v.pattern, v.pattern,
v.machine_number v.machine_number
FROM (SELECT t.contract_id, FROM (SELECT t.contract_id,
(SELECT hbbc.bank_account_id
FROM hls_bp_master_bank_account hbbc
WHERE hbbc.bp_id=t.bp_id_agent_level1)bp_bank_account_id,
(SELECT DECODE(COUNT(1), 0, 'N', 'Y') (SELECT DECODE(COUNT(1), 0, 'N', 'Y')
FROM acp_invoice_ln ai FROM acp_invoice_ln ai
WHERE ai.contract_id = t.contract_id) invoice_uploaded_flag, WHERE ai.contract_id = t.contract_id) invoice_uploaded_flag,
...@@ -112,34 +115,7 @@ ...@@ -112,34 +115,7 @@
h.description cf_description, h.description cf_description,
f.due_amount, f.due_amount,
t.currency currency_code, t.currency currency_code,
(CASE
WHEN f.cf_item IN (5, 6, 993, 998) THEN
(SELECT t.bank_account_id
FROM hls_bp_master_bank_account_v t
WHERE t.bp_id =
NVL(${@payment_bp_id},
csh_payment_req_pkg.get_bp_id(t.contract_id))
AND t.enabled_flag = 'Y'
AND t.sap_bvtyp = DECODE(t.division,
'10',
'CNYA',
'00',
'CNYA',
'01',
'CNYB')
AND rownum = 1)
WHEN f.cf_item IN (992, 994, 995, 997) THEN
(SELECT t.bank_account_id
FROM hls_bp_master_bank_account_v t
WHERE t.bp_id =
NVL(${@payment_bp_id},
csh_payment_req_pkg.get_bp_id(t.contract_id))
AND t.enabled_flag = 'Y'
AND t.sap_bvtyp = 'CNYC'
AND rownum = 1)
ELSE
NULL
END) bp_bank_account_id,
(CASE (CASE
WHEN f.cf_item IN (5, 6, 993, 998) THEN WHEN f.cf_item IN (5, 6, 993, 998) THEN
(SELECT t.bank_account_name (SELECT t.bank_account_name
......
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