| | |
| | | |
| | | <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"'> |
| | | 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 |
| | | AND business_dept_id=#{busDeptId} |
| | | <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'> |
| | | where 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"'> |
| | | 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 |
| | | AND business_dept_id=#{busDeptId} |
| | | <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'> |
| | | where business_dept_id = #{busDeptId} |
| | | </if> |
| | | </select> |
| | | <select id="batchBillCount" resultType="java.lang.Integer"> |
| | | SELECT |