From fe6e08c06b278b00fcdab3ece3a8c136c7d27270 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 13 Nov 2024 18:22:15 +0800
Subject: [PATCH] 新增三道防线信息查询
---
src/main/java/org/springblade/modules/yw/mapper/EmergencySuppliesMapper.xml | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/yw/mapper/EmergencySuppliesMapper.xml b/src/main/java/org/springblade/modules/yw/mapper/EmergencySuppliesMapper.xml
index 08f3869..cf61f72 100644
--- a/src/main/java/org/springblade/modules/yw/mapper/EmergencySuppliesMapper.xml
+++ b/src/main/java/org/springblade/modules/yw/mapper/EmergencySuppliesMapper.xml
@@ -24,7 +24,7 @@
select
yes.*,
yfi.name as firmName,
- ys.per_in_cha as personInCha,ys.per_in_cha_pho as personInChaPhone,
+ ys.per_in_cha as personInCha,ys.per_in_cha_pho as personInChaPhone,ys.address supAdd,
bdb.dict_value as emeSupType,
concat(yes.num,bdb1.dict_value) as numUnit
from
@@ -43,6 +43,14 @@
<if test="emergencySupplies.type!=null">
and yes.type = #{emergencySupplies.type}
</if>
+ <if test="emergencySupplies.ownership!=null">
+ <if test="emergencySupplies.ownership==1">
+ and yes.firm_id is null
+ </if>
+ <if test="emergencySupplies.ownership==2">
+ and yes.firm_id is not null
+ </if>
+ </if>
</select>
</mapper>
--
Gitblit v1.9.3