<?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.jeeplus.human.practice.reimburseRegister.mapper.ReimburseSubmitAccountDetailMapper">

    <sql id="Base_Column_List">
        a.id,
        a.create_by_id,
        a.create_time,
        a.update_by_id,
        a.update_time,
        a.del_flag,
        a.info_id,
        a.user_id,
        a.user_name,
        a.dept_id,
        a.dept_name,
        a.number,
        a.receipt_number,
        a.days,
        a.content,
        a.register_id,
        a.register_name
    </sql>

    <delete id="deleteByReportId">
        update human_resources_practice_reimburse_submit_account_detail set del_flag = '1' where info_id = #{id}
    </delete>
    <select id="getInfoByInfoId"
            resultType="com.jeeplus.human.practice.reimburseRegister.domain.ReimburseSubmitAccountDetail">
        select
        <include refid="Base_Column_List"></include>
        from human_resources_practice_reimburse_submit_account_detail a
        where info_id = #{id} and a.del_flag = '0'
    </select>
</mapper>