xuhy
2025-04-03 2d9a64c410f9e452951658f01ffc597d7bc1ea5f
ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
@@ -158,22 +158,30 @@
    <select id="statisticsAllRent" resultType="java.math.BigDecimal">
        SELECT ifnull(sum(payable_fees_money),0) as amount FROM t_bill
        where  business_dept_id=#{busDeptId}
        <if test='busDeptId != null and busDeptId != "" and busDeptId!="0"'>
            where business_dept_id = #{busDeptId}
        </if>
    </select>
    <select id="statisticsNoPay" resultType="java.math.BigDecimal">
        SELECT ifnull(sum(outstanding_money),0) as amount FROM t_bill where pay_fees_status!=3
        AND  business_dept_id=#{busDeptId}
        <if test='busDeptId != null and busDeptId != "" and busDeptId!="0"'>
            and business_dept_id = #{busDeptId}
        </if>
    </select>
    <select id="statisticsPayed" resultType="java.math.BigDecimal">
        SELECT ifnull(sum(pay_fees_money),0) as amount FROM t_bill
        where  business_dept_id=#{busDeptId}
        <if test='busDeptId != null and busDeptId != "" and busDeptId!="0"'>
            where business_dept_id = #{busDeptId}
        </if>
    </select>
    <select id="statisticsOverdue" resultType="java.math.BigDecimal">
        SELECT ifnull(sum(outstanding_money),0) as amount FROM t_bill where pay_fees_status=4
        AND  business_dept_id=#{busDeptId}
        <if test='busDeptId != null and busDeptId != "" and busDeptId!="0"'>
            and business_dept_id = #{busDeptId}
        </if>
    </select>
    <select id="batchBillCount" resultType="java.lang.Integer">
        SELECT