Xiaojh 4 år sedan
förälder
incheckning
78043e4844

+ 1 - 1
smart-city-platform/src/main/resources/mapper/pay/PayBaseAccountMapper.xml

@@ -556,7 +556,7 @@
             scd.id as deviceId,
             scinstall.is_accepted state,
             (case scinstall.is_accepted  WHEN  2 then '已开户' when 1 then '待开户' else '待验收' end) stateName,
-            (select IFNULL(max(reading),0) from pay_amount_waterusedamount_day d where d.watermeter_id = scd.id)
+            (select IFNULL(max(reading),0) from pay_amount_waterusedamount_day d where d.watermeter_id = scd.id) as CurrData
         from  sc_device scd
         left join sc_install_list scinstall on scd.id = scinstall.device_id  and scinstall.customer_id=#{customerId}
         left JOIN sc_device_type sdt on sdt.id = scd.device_type