<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.oa.mapper.OaInsuranceTemplateDetailMapper">

    <resultMap type="com.ruoyi.oa.domain.OaInsuranceTemplateDetail" id="OaInsuranceTemplateDetailResult">
        <result property="insuranceDetailId" column="insurance_detail_id"/>
        <result property="insuranceTemplateId" column="insurance_template_id"/>
        <result property="insuranceType" column="insurance_type"/>
        <result property="amount" column="amount"/>
        <result property="delFlag" column="del_flag"/>
        <result property="remark" column="remark"/>
        <result property="createBy" column="create_by"/>
        <result property="createTime" column="create_time"/>
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
    </resultMap>
    <select id="findByTemplateId" resultType="com.ruoyi.oa.domain.OaInsuranceTemplateDetail">
        SELECT * FROM oa_insurance_template_detail WHERE insurance_template_id = #{templateId}
    </select>


</mapper>
