From 449e10ac595070ebe0d0e18ac61a1ebe742e44c2 Mon Sep 17 00:00:00 2001 From: yupeng <roc__yu@163.com> Date: 星期五, 28 二月 2025 20:30:52 +0800 Subject: [PATCH] feat: 新增账单统计接口 --- ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml index c6177a6..f5df42e 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml @@ -146,4 +146,20 @@ LEFT JOIN t_tenant t ON t.id = c.tenant_id and t.disabled=0 where b.id = #{billId} </select> + + <select id="statisticsAllRent" resultType="java.math.BigDecimal"> + SELECT sum(payable_fees_money) as amount FROM t_bill + </select> + + <select id="statisticsNoPay" resultType="java.math.BigDecimal"> + SELECT sum(outstanding_money) as amount FROM t_bill where pay_fees_status!=3 + </select> + + <select id="statisticsPayed" resultType="java.math.BigDecimal"> + SELECT sum(pay_fees_money) as amount FROM t_bill + </select> + + <select id="statisticsOverdue" resultType="java.math.BigDecimal"> + SELECT sum(outstanding_money) as amount FROM t_bill where pay_fees_status=4 + </select> </mapper> -- Gitblit v1.7.1