Your Name
2023-05-25 b6987665e010050ca60b0404820faea59c831267
java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml
@@ -718,7 +718,7 @@
    <!-- 查询业主费用明细表 -->
    <select id="getOwnerFeeSummary" parameterType="Map" resultType="Map">
        select
        a.owner_id,GROUP_CONCAT(a.obj_name) objName,pfc.fee_type_cd,
        a.owner_id ownerId,GROUP_CONCAT(a.obj_name) objName,pfc.fee_type_cd feeTypeCd,
        (
        select ifnull(sum(t.receivable_amount),0.0) hisOweFee
        from pay_fee_detail_month t
@@ -753,4 +753,18 @@
        group by a.owner_id,pfc.fee_type_cd,a.community_id
    </select>
    <!-- 优惠费用-->
    <select id="getDiscountFee" parameterType="Map" resultType="Map">
        select SUM(t.discount_amount) discountFee
        from pay_fee_detail_month t
        where 1=1
        and t.status_cd = '0'
        and t.community_id = '2023052267100146'
        and t.detail_id != '-1'
        and t.discount_amount> 0
        and t.cur_month_time > '2023-05-01'
        and t.cur_month_time < '2023-06-01'
    </select>
</mapper>