IMRefundProcedureRecordMapper.xml
2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?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.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}
order by operator_date desc
</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>