From 30fc3da6e5895ef3eae52dedd76ea4f2708d5596 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Sat, 09 Nov 2024 14:40:28 +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