Commit b713c20e authored by lizhe's avatar lizhe

月结报表修改

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