Kaynağa Gözat

优化 当月收费情况表2

java110 5 yıl önce
ebeveyn
işleme
186b2e6839

+ 2 - 2
java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

@@ -2301,7 +2301,7 @@
         and t.community_id= #{communityId}
         GROUP BY floor_num
         ) b,
-        (select t.floor_num floorNum,receivedAmount2
+        (select t.floor_num floorNum,SUM(pfdm2.received_amount) receivedAmount2
         from f_floor t
         inner JOIN building_unit bu on t.floor_id = bu.floor_id and bu.status_cd = '0'
         inner JOIN building_room br on br.unit_id = bu.unit_id  and br.status_cd = '0'
@@ -2359,7 +2359,7 @@
         and t.community_id= #{communityId}
         GROUP BY floor_num
         ) b,
-        (select t.floor_num floorNum,receivedAmount2
+        (select t.floor_num floorNum,SUM(pfdm2.received_amount) receivedAmount2
         from f_floor t
         inner JOIN building_unit bu on t.floor_id = bu.floor_id and bu.status_cd = '0'
         inner JOIN building_room br on br.unit_id = bu.unit_id  and br.status_cd = '0'