ソースを参照

优化按时间段缴费逻辑

Your Name 3 年 前
コミット
e923297a83
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

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

@@ -3060,7 +3060,7 @@
         inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
         inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
         inner join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
         inner join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
         inner join report_owe_fee rof on br.room_id = rof.payer_obj_id
         inner join report_owe_fee rof on br.room_id = rof.payer_obj_id
-        inner join pay_fee pf on t.fee_id = pf.fee_id and pf.status_cd = '0'
+        inner join pay_fee pf on rof.fee_id = pf.fee_id and pf.status_cd = '0'
         where 1=1
         where 1=1
         and br.community_id = #{communityId}
         and br.community_id = #{communityId}
         and br.status_cd = '0'
         and br.status_cd = '0'
@@ -3117,7 +3117,7 @@
         inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
         inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
         inner join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
         inner join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
         inner join report_owe_fee rof on br.room_id = rof.payer_obj_id
         inner join report_owe_fee rof on br.room_id = rof.payer_obj_id
-        inner join pay_fee pf on t.fee_id = pf.fee_id and pf.status_cd = '0'
+        inner join pay_fee pf on rof.fee_id = pf.fee_id and pf.status_cd = '0'
         where 1=1
         where 1=1
         and br.community_id = #{communityId}
         and br.community_id = #{communityId}
         and br.status_cd = '0'
         and br.status_cd = '0'