From 15a3aba3a971501e55400a546560280e46b758ca Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Thu, 31 Oct 2024 15:40:34 +0800
Subject: [PATCH] 应急空间,救援队伍,风险源,应急物资查询调整,按企业查询

---
 src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml b/src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml
index ed4fc87..2adb77d 100644
--- a/src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml
+++ b/src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml
@@ -17,8 +17,17 @@
     </resultMap>
 
     <!--自定义分页查询-->
-    <select id="selectRiskSourcePage" resultMap="riskSourceResultMap">
-        select * from yw_risk_source where is_deleted = 0
+    <select id="selectRiskSourcePage" resultType="org.springblade.modules.yw.vo.RiskSourceVO">
+        select
+        yrs.*,
+        yfi.name as firmName
+        from
+        yw_risk_source yrs
+        left join yw_firm_info yfi on yfi.id = yrs.firm_id and yfi.is_deleted = 0
+        where yrs.is_deleted = 0
+        <if test="riskSource.firmId!=null">
+            and yrs.firm_id = #{riskSource.firmId}
+        </if>
     </select>
 
     <!--风险源统计查询-->

--
Gitblit v1.9.3