From 1bfc7b9e9592a31ffda2a0742e74c1dc69827563 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 01 Nov 2024 20:40:09 +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