From 77031c2c9fca6c55f74e636c5ea765cc1dc1fd6e Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 19 Nov 2024 16:21:42 +0800
Subject: [PATCH] 应急物资查询调整,风险源查询调整
---
src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 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 572f52c..81d4a15 100644
--- a/src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml
+++ b/src/main/java/org/springblade/modules/yw/mapper/RiskSourceMapper.xml
@@ -20,7 +20,7 @@
<select id="selectRiskSourcePage" resultType="org.springblade.modules.yw.vo.RiskSourceVO">
select
yrs.*,
- yfi.name as firmName,yfi.category,yfi.main_product,
+ yfi.name as firmName,yfi.category,yfi.main_product,yfi.lng,yfi.lat,
bdb.dict_value as riskLevelName
from
yw_risk_source yrs
@@ -30,6 +30,9 @@
<if test="riskSource.firmId!=null">
and yrs.firm_id = #{riskSource.firmId}
</if>
+ <if test="riskSource.name!=null and riskSource.name!=''">
+ and yrs.name like concat('%',#{riskSource.name},'%')
+ </if>
<if test="riskSource.riskLevel!=null">
and yrs.risk_level = #{riskSource.riskLevel}
</if>
--
Gitblit v1.9.3