<?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.assess.reimbursement.reimbursementInfo.mapper.ReimbursementInfoUpHiMapper">

    <select id="findHistory" resultType="com.jeeplus.assess.reimbursement.reimbursementInfo.domain.ReimbursementInfoUpHi">
        select
            a.id,
            a.info_id,
            a.create_time,
            a.json_data,
            su.name as createName
        from reimbursement_info_up_hi a
        left join sys_user su on su.id = a.create_by_id and su.del_flag = 0
        where a.info_id = #{id} and a.del_flag = 0
        order by a.create_time DESC
    </select>

</mapper>