| | |
| | | <if test="query.userId != null and query.userId !=''"> |
| | | and t.id = #{query.userId} |
| | | </if> |
| | | <if test="query.businessDeptId != null and query.businessDeptId !=''"> |
| | | and b.business_dept_id = #{businessDeptId} |
| | | </if> |
| | | <if test="query.billType != null"> |
| | | and b.bill_type = #{query.billType} |
| | | </if> |
| | |
| | | |
| | | <select id="statisticsAllRent" resultType="java.math.BigDecimal"> |
| | | SELECT ifnull(sum(payable_fees_money),0) as amount FROM t_bill |
| | | where business_dept_id=#{busDeptId} |
| | | </select> |
| | | |
| | | <select id="statisticsNoPay" resultType="java.math.BigDecimal"> |
| | | SELECT ifnull(sum(outstanding_money),0) as amount FROM t_bill where pay_fees_status!=3 |
| | | where business_dept_id=#{busDeptId} |
| | | </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} |
| | | </select> |
| | | |
| | | <select id="statisticsOverdue" resultType="java.math.BigDecimal"> |
| | | SELECT ifnull(sum(outstanding_money),0) as amount FROM t_bill where pay_fees_status=4 |
| | | where business_dept_id=#{busDeptId} |
| | | </select> |
| | | <select id="batchBillCount" resultType="java.lang.Integer"> |
| | | SELECT |