From d4bb9224e835cf0221be254d349efb3d4aaab68b Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 13 Mar 2023 16:46:04 +0800
Subject: [PATCH] 大屏接口实现远程调用
---
blade-service/blade-fire/src/main/java/org/springblade/modules/fireSupplement/mapper/FireSupplementMapper.xml | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/blade-service/blade-fire/src/main/java/org/springblade/modules/fireSupplement/mapper/FireSupplementMapper.xml b/blade-service/blade-fire/src/main/java/org/springblade/modules/fireSupplement/mapper/FireSupplementMapper.xml
index 094b169..ec4e9f7 100644
--- a/blade-service/blade-fire/src/main/java/org/springblade/modules/fireSupplement/mapper/FireSupplementMapper.xml
+++ b/blade-service/blade-fire/src/main/java/org/springblade/modules/fireSupplement/mapper/FireSupplementMapper.xml
@@ -3,7 +3,7 @@
<mapper namespace="org.springblade.modules.fireSupplement.mapper.FireSupplementMapper">
<!-- 通用查询映射结果 -->
- <resultMap id="fireSupplementResultMap" type="org.springblade.modules.fireSupplement.entity.FireSupplementEntity">
+ <resultMap id="fireSupplementResultMap" type="org.springblade.fire.vo.FireSupplementVO">
<result column="id" property="id"/>
<result column="fire_id" property="fireId"/>
<result column="fire_reason" property="fireReason"/>
@@ -34,5 +34,15 @@
select * from sys_fire_supplement where is_deleted = 0
</select>
+ <select id="getVODetail" resultMap="fireSupplementResultMap">
+ select * from sys_fire_supplement where is_deleted = 0
+ <if test="sup.id !=null and sup.id !=''">
+ AND id = #{sup.id}
+ </if>
+ <if test="sup.fireId !=null and sup.fireId !='' ">
+ AND fire_id = #{sup.fireId}
+ </if>
+ </select>
+
</mapper>
--
Gitblit v1.9.3