IMRefundProcedureRecordMapper.xml 2.4 KB
<?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.sibu.orderHelper.integral.web.dao.IMRefundProcedureRecordDao">
    <resultMap id="BaseResultMap" type="com.sibu.orderHelper.integral.model.IMRefundProcedureRecord">
        <id column="procedure_record_id" jdbcType="VARCHAR" property="procedureRecordId"/>
        <result column="refund_code" jdbcType="VARCHAR" property="refundCode"/>
        <result column="refund_id" jdbcType="VARCHAR" property="refundId"/>
        <result column="operator_id" jdbcType="VARCHAR" property="operatorId"/>
        <result column="operator_name" jdbcType="VARCHAR" property="operatorName"/>
        <result column="operator_date" jdbcType="TIMESTAMP" property="operatorDate"/>
        <result column="operator_remark" jdbcType="VARCHAR" property="operatorRemark"/>
        <result column="operator_status" jdbcType="TINYINT" property="operatorStatus"/>
        <result column="operator_role" jdbcType="TINYINT" property="operatorRole"/>
        <result column="operator_phone" jdbcType="VARCHAR" property="operatorPhone"/>
        <result column="member_id" jdbcType="VARCHAR" property="memberId"/>
    </resultMap>
    <sql id="Base_Column_List">
        procedure_record_id, refund_code, refund_id, operator_id, operator_name, operator_date,
        operator_remark, operator_status, operator_role, operator_phone, member_id
    </sql>
    <select id="findByRefundIdAndMemberId" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from im_refund_procedure_record where refund_id = #{refundId} and
        member_id = #{memberId}
    </select>
    <insert id="insert" parameterType="com.sibu.orderHelper.integral.model.IMRefundProcedureRecord">
        INSERT INTO `im_refund_procedure_record`
        (`procedure_record_id`,
        `refund_code`,
        `refund_id`,
        `operator_id`,
        `operator_name`,
        `operator_date`,
        `operator_remark`,
        `operator_status`,
        `operator_role`,
        `operator_phone`,
        `member_id`)
        VALUES
        (#{procedureRecordId},
        #{refundCode},
        #{refundId},
        #{operatorId},
        #{operatorName},
        #{operatorDate},
        #{operatorRemark},
        #{operatorStatus},
        #{operatorRole},
        #{operatorPhone},
        #{memberId});

    </insert>

</mapper>