| | |
| | | </select> |
| | | |
| | | <select id="statisticsAllRent" resultType="java.math.BigDecimal"> |
| | | SELECT ifnull(sum(payable_fees_money),0) as amount FROM t_bill |
| | | SELECT ifnull(sum(payable_fees_money),0) as amount FROM t_bill where pay_fees_status!='5' |
| | | <if test='busDeptId != null and busDeptId != "" and busDeptId!="0"'> |
| | | where business_dept_id = #{busDeptId} |
| | | and 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 |
| | | SELECT ifnull(sum(outstanding_money),0) as amount FROM t_bill where pay_fees_status!='3' and pay_fees_status!='5' |
| | | <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 |
| | | SELECT ifnull(sum(pay_fees_money),0) as amount FROM t_bill where pay_fees_status!='5' |
| | | <if test='busDeptId != null and busDeptId != "" and busDeptId!="0"'> |
| | | where business_dept_id = #{busDeptId} |
| | | and 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 |
| | | SELECT ifnull(sum(outstanding_money),0) as amount FROM t_bill where pay_fees_status='4' |
| | | <if test='busDeptId != null and busDeptId != "" and busDeptId!="0"'> |
| | | and business_dept_id = #{busDeptId} |
| | | </if> |