From 52a29d9515a4e9cec9f5f975cb7566adca12540e Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 12 Nov 2024 18:04:22 +0800
Subject: [PATCH] 新增附件信息导入,新增应急物资查询接口
---
src/main/java/org/springblade/modules/yw/mapper/FirmInfoMapper.xml | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/yw/mapper/FirmInfoMapper.xml b/src/main/java/org/springblade/modules/yw/mapper/FirmInfoMapper.xml
index 46e33cf..04e38bb 100644
--- a/src/main/java/org/springblade/modules/yw/mapper/FirmInfoMapper.xml
+++ b/src/main/java/org/springblade/modules/yw/mapper/FirmInfoMapper.xml
@@ -13,4 +13,15 @@
</if>
</select>
+ <!--自定义详情查询-->
+ <select id="getDetail" resultType="org.springblade.modules.yw.vo.FirmInfoVO">
+ select
+ yfi.*,
+ yrt.per_in_cha as rescuePerName,yrt.per_in_cha_pho as rescuePerPhone
+ from yw_firm_info yfi
+ left join yw_rescue_team yrt on yrt.firm_id = yfi.id and yrt.is_deleted = 0
+ where yfi.is_deleted = 0
+ and yfi.id = #{firmInfo.id}
+ </select>
+
</mapper>
--
Gitblit v1.9.3