yupeng
2025-04-03 2683772d398e33c1a151ff473376e7df0e40d036
ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
@@ -158,29 +158,29 @@
    <select id="statisticsAllRent" resultType="java.math.BigDecimal">
        SELECT ifnull(sum(payable_fees_money),0) as amount FROM t_bill
        <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'>
        <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
        <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'>
            where 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
        <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'>
        <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
        <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'>
            where 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">