RankChangeMapper.xml
3.45 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?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.customer.mapper.RankChangeMapper" >
<resultMap id="BaseResultMap" type="cn.runsa.crmapp.customer.entity.RankChange" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result column="ACT_ID" property="actId" jdbcType="BIGINT" />
<result column="RANK_TYPE" property="rankType" jdbcType="TINYINT" />
<result column="RANK_FROM" property="rankFrom" jdbcType="VARCHAR" />
<result column="RANK_TO" property="rankTo" jdbcType="VARCHAR" />
<result column="PLC_ID" property="plcId" jdbcType="BIGINT" />
<result column="PRIORITY" property="priority" jdbcType="INTEGER" />
<result column="RANK_KEEP" property="rankKeep" jdbcType="BIT" />
<result column="REC_TIME" property="recTime" jdbcType="TIMESTAMP" />
<result column="REC_USER" property="recUser" jdbcType="BIGINT" />
</resultMap>
<insert id="insert" parameterType="cn.runsa.crmapp.customer.entity.RankChange" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into crm_rank_policy_change (`ACT_ID`, `RANK_TYPE`, `RANK_FROM`,
`RANK_TO`, `PLC_ID`, `PRIORITY`,
`RANK_KEEP`, `REC_TIME`, `REC_USER`
)
values (#{actId,jdbcType=BIGINT}, #{rankType,jdbcType=TINYINT}, #{rankFrom,jdbcType=VARCHAR},
#{rankTo,jdbcType=VARCHAR}, #{plcId,jdbcType=BIGINT}, #{priority,jdbcType=INTEGER},
#{rankKeep,jdbcType=BIT}, #{recTime,jdbcType=TIMESTAMP}, #{recUser,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="cn.runsa.crmapp.customer.entity.RankChange" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into crm_rank_policy_change
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="actId != null" >
`ACT_ID`,
</if>
<if test="rankType != null" >
`RANK_TYPE`,
</if>
<if test="rankFrom != null" >
`RANK_FROM`,
</if>
<if test="rankTo != null" >
`RANK_TO`,
</if>
<if test="plcId != null" >
`PLC_ID`,
</if>
<if test="priority != null" >
`PRIORITY`,
</if>
<if test="rankKeep != null" >
`RANK_KEEP`,
</if>
<if test="recTime != null" >
`REC_TIME`,
</if>
<if test="recUser != null" >
`REC_USER`,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="actId != null" >
#{actId,jdbcType=BIGINT},
</if>
<if test="rankType != null" >
#{rankType,jdbcType=TINYINT},
</if>
<if test="rankFrom != null" >
#{rankFrom,jdbcType=VARCHAR},
</if>
<if test="rankTo != null" >
#{rankTo,jdbcType=VARCHAR},
</if>
<if test="plcId != null" >
#{plcId,jdbcType=BIGINT},
</if>
<if test="priority != null" >
#{priority,jdbcType=INTEGER},
</if>
<if test="rankKeep != null" >
#{rankKeep,jdbcType=BIT},
</if>
<if test="recTime != null" >
#{recTime,jdbcType=TIMESTAMP},
</if>
<if test="recUser != null" >
#{recUser,jdbcType=BIGINT},
</if>
</trim>
</insert>
</mapper>