<?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.younike.system.mapper.OrderRefundMapper">

    <select id="getByOrderId" resultType="com.younike.system.domain.OrderRefund">
        SELECT
        order_refund_id,
        order_id,
        pay_money,
        refund_money,
        refund_reason,
        refund_comment,
        refund_img,
        handle_time,
        status,
        refund_reply,
        refund_result,
        mome,
        is_del,
        create_time,
        update_time,
        version
        FROM order_refund
        WHERE is_del = '0'
        AND order_id = #{orderId}
        ORDER BY create_time
        LIMIT 1
    </select>
</mapper>
