林火综合应急信息管理系统cloud后端
guoshilong
2023-03-13 d4bb9224e835cf0221be254d349efb3d4aaab68b
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>