From 2683772d398e33c1a151ff473376e7df0e40d036 Mon Sep 17 00:00:00 2001 From: yupeng <roc__yu@163.com> Date: 星期四, 03 四月 2025 11:59:46 +0800 Subject: [PATCH] feat: 更新统计SQL,单独账单新增合同列表查询接口 --- ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml index 363ea07..dde72c4 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml @@ -158,29 +158,29 @@ <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"'> + <if test='busDeptId != null and busDeptId != "" and busDeptId!="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 - <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'> - where business_dept_id = #{busDeptId} + <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 - <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'> + <if test='busDeptId != null and busDeptId != "" and busDeptId!="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 - <if test='query.businessDeptId != null and query.businessDeptId != "" and query.businessDeptId!="0"'> - where business_dept_id = #{busDeptId} + <if test='busDeptId != null and busDeptId != "" and busDeptId!="0"'> + and business_dept_id = #{busDeptId} </if> </select> <select id="batchBillCount" resultType="java.lang.Integer"> -- Gitblit v1.7.1