From 160b87f6c1b93e5061f9556984c07c9cb45d04a6 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期四, 03 四月 2025 09:46:05 +0800
Subject: [PATCH] Merge branch 'dev' of http://120.76.84.145:10101/gitblit/r/java/xizang

---
 ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
index 9e1bbcc..08bdfc9 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
@@ -204,6 +204,11 @@
                 LEFT JOIN t_house th ON ts.id = th.street_id
                 LEFT JOIN t_contract tc ON tc.house_id = th.id
                 LEFT JOIN t_bill tb ON tc.id = tb.contract_id
+            <where>
+                <if test="businessDeptId != 0">
+                    AND th.business_dept_id = #{businessDeptId}
+                </if>
+            </where>
         GROUP BY ts.id
         ORDER BY rentAmount DESC
     </select>

--
Gitblit v1.7.1