Commit e6bad3e6 authored by 18083's avatar 18083

资管费二阶段对账单改造

parent f5bc53db
......@@ -123,7 +123,7 @@
ccc.cf_direction = 'NONCASH' And
ccc.cf_status = 'BLOCK' And
nvl(ccc.write_off_flag, 'NOT') != 'NOT'))
And ccc.cf_item Not In (0, 9)
And ccc.cf_item Not In (0,9,40)
And c.contract_id = #{contractId}
Order By ccc.times,
ccc.cf_item,
......@@ -223,7 +223,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -238,7 +238,7 @@
hls_cashflow_item h
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -254,7 +254,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -268,7 +268,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -285,7 +285,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -298,7 +298,7 @@
From con_contract_cashflow cc2,csh_write_off tn,csh_transaction ct
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -371,7 +371,7 @@
ccc.cf_direction = 'NONCASH' And
ccc.cf_status = 'BLOCK' And
nvl(ccc.write_off_flag, 'NOT') != 'NOT'))
And ccc.cf_item Not In (0, 9)
And ccc.cf_item Not In (0, 9,40)
And c.contract_id = #{contractId}
Order By ccc.times,
ccc.cf_item,
......@@ -538,7 +538,7 @@
ccc.cf_direction = 'NONCASH' And
ccc.cf_status = 'BLOCK' And
nvl(ccc.write_off_flag, 'NOT') != 'NOT'))
And ccc.cf_item Not In (0, 9)
And ccc.cf_item Not In (0, 9,40)
And ccc.times >
nvl((Select Max(cc2.times)
From con_contract_cashflow cc2
......@@ -665,7 +665,7 @@
ccc.cf_status = 'BLOCK' And
nvl(ccc.write_off_flag, 'NOT') !=
'NOT'))
And ccc.cf_item Not In (0, 9)
And ccc.cf_item Not In (0, 9,40)
And c.contract_id = #{contractId}
Order By ccc.times,
ccc.cf_item,
......@@ -762,7 +762,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -778,7 +778,7 @@
hls_cashflow_item h
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -795,7 +795,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -810,7 +810,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -827,7 +827,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -841,7 +841,7 @@
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And cc2.cf_item Not In (0, 9,40)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
......@@ -911,7 +911,7 @@
ccc.cf_status = 'BLOCK' And
nvl(ccc.write_off_flag, 'NOT') !=
'NOT'))
And ccc.cf_item Not In (0, 9)
And ccc.cf_item Not In (0, 9,40)
And c.contract_id = #{contractId}
Order By ccc.times,
ccc.cf_item,
......@@ -1077,7 +1077,7 @@
ccc.cf_direction = 'NONCASH' And
ccc.cf_status = 'BLOCK' And
nvl(ccc.write_off_flag, 'NOT') != 'NOT'))
And ccc.cf_item Not In (0, 9)
And ccc.cf_item Not In (0, 9,40)
And ccc.times >
nvl((Select Max(cc2.times)
From con_contract_cashflow cc2
......@@ -1100,9 +1100,9 @@
Select
hb.bp_name,
c.contract_number,
(Select cl.machine_number
nvl((Select cl.machine_number
From con_contract_lease_item cl
Where cl.contract_id = c.contract_id) As machine_number,
Where cl.contract_id = c.contract_id),'/') As machine_number,
to_char(Sysdate, 'yyyy"年"mm"月"dd"日"') As today
From con_contract c, hls_bp_master hb
Where c.bp_id_tenant = hb.bp_id
......@@ -1111,9 +1111,9 @@
union all
Select hb.bp_name,
c.contract_number,
(Select cl.machine_number_70
nvl((Select cl.machine_number_70
From con_contract_lease_item cl
Where cl.contract_id = c.contract_id) As machine_number,
Where cl.contract_id = c.contract_id),'/') As machine_number,
to_char(Sysdate, 'yyyy"年"mm"月"dd"日"') As today
From con_contract c, hls_bp_master hb
Where c.bp_id_tenant = hb.bp_id
......
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