| | |
| | | and t.id = #{query.userId} |
| | | </if> |
| | | </where> |
| | | order by b.payable_fees_time |
| | | order by b.payable_fees_time desc,b.create_time desc |
| | | </select> |
| | | <select id="getBillList" resultType="com.ruoyi.system.dto.TBillDto"> |
| | | SELECT |
| | |
| | | </select> |
| | | |
| | | <select id="statisticsAllRent" resultType="java.math.BigDecimal"> |
| | | SELECT sum(payable_fees_money) as amount FROM t_bill |
| | | SELECT ifnull(sum(payable_fees_money),0) 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 ifnull(sum(outstanding_money),0) 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 ifnull(sum(pay_fees_money),0) 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 ifnull(sum(outstanding_money),0) as amount FROM t_bill where pay_fees_status=4 |
| | | </select> |
| | | </mapper> |