|
@@ -1647,7 +1647,7 @@
|
|
|
smrr.location as location,
|
|
|
ifnull(sum(smrr.last_cost), 0) as water_consumption
|
|
|
from
|
|
|
- sc_meter_read_record smrr
|
|
|
+ sc_meter_read_record_xinhui smrr
|
|
|
left join sc_device_type sdt on (smrr.device_type_id = sdt.id and sdt.status = 1)
|
|
|
left join sc_device_manufacturer sdm on (sdm.id = sdt.manufacturer_id and sdm.status = 1)
|
|
|
left join sc_customer scu on (smrr.customer_id = scu.id and scu.status = 1)
|
|
@@ -1694,7 +1694,7 @@
|
|
|
smrr.building_id as building_id,
|
|
|
ifnull(sum(smrr.last_cost), 0) as water_consumption
|
|
|
from
|
|
|
- sc_meter_read_record smrr
|
|
|
+ sc_meter_read_record_xinhui smrr
|
|
|
where smrr.status = 1
|
|
|
<if test="param.siteId != null"> and smrr.site_id = #{param.siteId}</if>
|
|
|
<if test="param.custormerId != null"> and smrr.customer_id = #{param.custormerId} </if>
|
|
@@ -1736,7 +1736,7 @@
|
|
|
smrr.location as location,
|
|
|
smrr.last_cost as water_consumption
|
|
|
from
|
|
|
- sc_meter_read_record smrr
|
|
|
+ sc_meter_read_record_xinhui smrr
|
|
|
left join sc_device_type sdt on (smrr.device_type_id = sdt.id and sdt.status = 1)
|
|
|
left join sc_device_manufacturer sdm on (sdm.id = sdt.manufacturer_id and sdm.status = 1)
|
|
|
left join sc_customer scu on (smrr.customer_id = scu.id and scu.status = 1)
|