|
@@ -63,6 +63,8 @@
|
|
and contract_meter_id = #{nodeId} and contract_form_id = cif.id) as upPayMoney,
|
|
and contract_meter_id = #{nodeId} and contract_form_id = cif.id) as upPayMoney,
|
|
IFNULL((select sum(change_build_picture_total) from s_inventory_form_meter where is_deleted = 0
|
|
IFNULL((select sum(change_build_picture_total) from s_inventory_form_meter where is_deleted = 0
|
|
and contract_meter_id = #{nodeId} and contract_form_id = cif.id),0) as change_total,
|
|
and contract_meter_id = #{nodeId} and contract_form_id = cif.id),0) as change_total,
|
|
|
|
+ IFNULL((SELECT SUM(change_build_picture_total) from s_inventory_form_meter
|
|
|
|
+ WHERE contract_id = #{contractId} and is_deleted = 0 and contract_form_id = cif.id),0) as poseNum,
|
|
IFNULL((select sum(build_picture_total) from s_inventory_form_meter where is_deleted = 0
|
|
IFNULL((select sum(build_picture_total) from s_inventory_form_meter where is_deleted = 0
|
|
and contract_meter_id = #{nodeId} and contract_form_id = cif.id),0) as resolveTotal,
|
|
and contract_meter_id = #{nodeId} and contract_form_id = cif.id),0) as resolveTotal,
|
|
0 as currentMeterTotal,0 as containChangeTotal,0 as currentMeterMoney,
|
|
0 as currentMeterTotal,0 as containChangeTotal,0 as currentMeterMoney,
|