OrderCouponsMapper.xml
1.86 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
<?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="cn.runsa.crmapp.coupon.mapper.OrderCouponsMapper" >
<resultMap id="BaseResultMap" type="cn.runsa.crmapp.coupon.entity.OrderCoupons" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result column="RCPT_ID" property="rcptId" jdbcType="VARCHAR" />
<result column="CPN_ID" property="cpnId" jdbcType="VARCHAR" />
<result column="CPL_ID" property="cplId" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="cn.runsa.crmapp.coupon.entity.OrderCoupons" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into crm_order_coupons (`RCPT_ID`, `CPN_ID`, `CPL_ID`
)
values (#{rcptId,jdbcType=VARCHAR}, #{cpnId,jdbcType=VARCHAR}, #{cplId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="cn.runsa.crmapp.coupon.entity.OrderCoupons" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into crm_order_coupons
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="rcptId != null" >
`RCPT_ID`,
</if>
<if test="cpnId != null" >
`CPN_ID`,
</if>
<if test="cplId != null" >
`CPL_ID`,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="rcptId != null" >
#{rcptId,jdbcType=VARCHAR},
</if>
<if test="cpnId != null" >
#{cpnId,jdbcType=VARCHAR},
</if>
<if test="cplId != null" >
#{cplId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>