Commit a404cd17 authored by lizhe's avatar lizhe

月结报表修改

parent e82d4f98
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
t.bp_id_agent_level1) agent_extra_name, t.bp_id_agent_level1) agent_extra_name,
to_char(t.lease_start_date, to_char(t.lease_start_date,
'yyyy-mm-dd') lease_start_date, 'yyyy-mm-dd') lease_start_date,
ccli.machine_number, nvl(ccli.machine_number,ccli.machine_number_70) machine_number,
ccli.modelcd, ccli.modelcd,
(CASE (CASE
WHEN ccc.cf_item = 8 THEN WHEN ccc.cf_item = 8 THEN
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
FROM con_contract_lease_item ccli FROM con_contract_lease_item ccli
WHERE ccli.contract_id = ct.contract_id) modelcd, WHERE ccli.contract_id = ct.contract_id) modelcd,
--机型 --机型
(SELECT i.machine_number (SELECT nvl(i.machine_number,i.machine_number_70)
FROM con_contract_lease_item i FROM con_contract_lease_item i
WHERE i.contract_id = ct.contract_id WHERE i.contract_id = ct.contract_id
AND i.equipment_type = 'MAIN') machine_number, AND i.equipment_type = 'MAIN') machine_number,
......
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