Commit 0ffbfd00 authored by 陆正友's avatar 陆正友

对账单

parent e82ee77d
...@@ -1097,8 +1097,7 @@ ...@@ -1097,8 +1097,7 @@
<select id="selectContractDetailList" parameterType="integer" resultType="java.util.HashMap"> <select id="selectContractDetailList" parameterType="integer" resultType="java.util.HashMap">
Select Select hb.bp_name,
hb.bp_name,
c.contract_number, c.contract_number,
(Select cl.machine_number (Select cl.machine_number
From con_contract_lease_item cl From con_contract_lease_item cl
...@@ -1107,6 +1106,20 @@ ...@@ -1107,6 +1106,20 @@
From con_contract c, hls_bp_master hb From con_contract c, hls_bp_master hb
Where c.bp_id_tenant = hb.bp_id Where c.bp_id_tenant = hb.bp_id
and c.contract_id = #{contractId} and c.contract_id = #{contractId}
and nvl(division, '-1') not IN ('70', '92')
union all
Select hb.bp_name,
c.contract_number,
(Select cl.machine_number_70
From con_contract_lease_item cl
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
and c.contract_id = #{contractId}
and nvl(division, '-1') IN ('70', '92')
</select> </select>
......
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