CustomerCouponsMapper.xml
2.96 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?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.CustomerCouponsMapper">
<resultMap id="BaseResultMap" type="cn.runsa.crmapp.coupon.entity.CustomerCoupons">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result column="CST_ID" jdbcType="BIGINT" property="cstId" />
<result column="CPN_ID" jdbcType="VARCHAR" property="cpnId" />
<result column="CST_FROM" jdbcType="BIGINT" property="cstFrom" />
<result column="RCV_TIME" jdbcType="TIMESTAMP" property="rcvTime" />
<result column="ORDERS" jdbcType="INTEGER" property="orders" />
<result column="ENABLE" jdbcType="BIT" property="enable" />
</resultMap>
<insert id="insert" parameterType="cn.runsa.crmapp.coupon.entity.CustomerCoupons">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into crm_coupons_customer (`CST_ID`, `CPN_ID`, `CST_FROM`,
`RCV_TIME`, `ORDERS`, `ENABLE`
)
values (#{cstId,jdbcType=BIGINT}, #{cpnId,jdbcType=VARCHAR}, #{cstFrom,jdbcType=BIGINT},
#{rcvTime,jdbcType=TIMESTAMP}, #{orders,jdbcType=INTEGER}, #{enable,jdbcType=BIT}
)
</insert>
<insert id="insertSelective" parameterType="cn.runsa.crmapp.coupon.entity.CustomerCoupons">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into crm_coupons_customer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cstId != null">
`CST_ID`,
</if>
<if test="cpnId != null">
`CPN_ID`,
</if>
<if test="cstFrom != null">
`CST_FROM`,
</if>
<if test="rcvTime != null">
`RCV_TIME`,
</if>
<if test="orders != null">
`ORDERS`,
</if>
<if test="enable != null">
`ENABLE`,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cstId != null">
#{cstId,jdbcType=BIGINT},
</if>
<if test="cpnId != null">
#{cpnId,jdbcType=VARCHAR},
</if>
<if test="cstFrom != null">
#{cstFrom,jdbcType=BIGINT},
</if>
<if test="rcvTime != null">
#{rcvTime,jdbcType=TIMESTAMP},
</if>
<if test="orders != null">
#{orders,jdbcType=INTEGER},
</if>
<if test="enable != null">
#{enable,jdbcType=BIT},
</if>
</trim>
</insert>
<insert id="insertMore">
insert into crm_coupons_customer (`CPN_ID`, `CST_ID`, `RCV_TIME`, `ORDERS`, `ENABLE`)
values
<foreach collection="list" item="it" separator=",">
(#{it.cpnId,jdbcType=VARCHAR}, #{it.cstId,jdbcType=BIGINT},
#{it.rcvTime,jdbcType=TIMESTAMP}, #{it.orders,jdbcType=INTEGER}, #{it.enable,jdbcType=BIT})
</foreach>
</insert>
</mapper>