Xiaojh 4 년 전
부모
커밋
78043e4844
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      smart-city-platform/src/main/resources/mapper/pay/PayBaseAccountMapper.xml

+ 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