|
@@ -6,10 +6,11 @@ |
|
@@ -6,10 +6,11 @@ |
6
|
<id column="inviter_uid" property="inviterUid" jdbcType="INTEGER" />
|
6
|
<id column="inviter_uid" property="inviterUid" jdbcType="INTEGER" />
|
7
|
<id column="uid" property="uid" jdbcType="INTEGER" />
|
7
|
<id column="uid" property="uid" jdbcType="INTEGER" />
|
8
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
8
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
9
|
- <result column="type" property="type" jdbcType="TINYINT" />
|
9
|
+ <result column="type" property="type" jdbcType="VARCHAR" />
|
|
|
10
|
+ <result column="app_key" property="appKey" jdbcType="VARCHAR" />
|
10
|
</resultMap>
|
11
|
</resultMap>
|
11
|
<sql id="Base_Column_List" >
|
12
|
<sql id="Base_Column_List" >
|
12
|
- date_id, inviter_uid, uid, create_time, type
|
13
|
+ date_id, inviter_uid, uid, create_time, type,app_key
|
13
|
</sql>
|
14
|
</sql>
|
14
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUidKey" >
|
15
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUidKey" >
|
15
|
select
|
16
|
select
|
|
@@ -31,49 +32,6 @@ |
|
@@ -31,49 +32,6 @@ |
31
|
and inviter_uid = #{inviterUid,jdbcType=INTEGER}
|
32
|
and inviter_uid = #{inviterUid,jdbcType=INTEGER}
|
32
|
and uid = #{uid,jdbcType=INTEGER}
|
33
|
and uid = #{uid,jdbcType=INTEGER}
|
33
|
</delete>
|
34
|
</delete>
|
34
|
- <insert id="insert" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
|
|
|
35
|
- insert into app_yoho_cps_new_uid (date_id, inviter_uid, uid,
|
|
|
36
|
- create_time, type)
|
|
|
37
|
- values (#{dateId,jdbcType=INTEGER}, #{inviterUid,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER},
|
|
|
38
|
- #{createTime,jdbcType=INTEGER}, #{type,jdbcType=TINYINT})
|
|
|
39
|
- </insert>
|
|
|
40
|
- <insert id="insertSelective" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
|
|
|
41
|
- insert into app_yoho_cps_new_uid
|
|
|
42
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
43
|
- <if test="dateId != null" >
|
|
|
44
|
- date_id,
|
|
|
45
|
- </if>
|
|
|
46
|
- <if test="inviterUid != null" >
|
|
|
47
|
- inviter_uid,
|
|
|
48
|
- </if>
|
|
|
49
|
- <if test="uid != null" >
|
|
|
50
|
- uid,
|
|
|
51
|
- </if>
|
|
|
52
|
- <if test="createTime != null" >
|
|
|
53
|
- create_time,
|
|
|
54
|
- </if>
|
|
|
55
|
- <if test="type != null" >
|
|
|
56
|
- type,
|
|
|
57
|
- </if>
|
|
|
58
|
- </trim>
|
|
|
59
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
60
|
- <if test="dateId != null" >
|
|
|
61
|
- #{dateId,jdbcType=INTEGER},
|
|
|
62
|
- </if>
|
|
|
63
|
- <if test="inviterUid != null" >
|
|
|
64
|
- #{inviterUid,jdbcType=INTEGER},
|
|
|
65
|
- </if>
|
|
|
66
|
- <if test="uid != null" >
|
|
|
67
|
- #{uid,jdbcType=INTEGER},
|
|
|
68
|
- </if>
|
|
|
69
|
- <if test="createTime != null" >
|
|
|
70
|
- #{createTime,jdbcType=INTEGER},
|
|
|
71
|
- </if>
|
|
|
72
|
- <if test="type != null" >
|
|
|
73
|
- #{type,jdbcType=TINYINT},
|
|
|
74
|
- </if>
|
|
|
75
|
- </trim>
|
|
|
76
|
- </insert>
|
|
|
77
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
|
35
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
|
78
|
update app_yoho_cps_new_uid
|
36
|
update app_yoho_cps_new_uid
|
79
|
<set >
|
37
|
<set >
|
|
@@ -81,7 +39,7 @@ |
|
@@ -81,7 +39,7 @@ |
81
|
create_time = #{createTime,jdbcType=INTEGER},
|
39
|
create_time = #{createTime,jdbcType=INTEGER},
|
82
|
</if>
|
40
|
</if>
|
83
|
<if test="type != null" >
|
41
|
<if test="type != null" >
|
84
|
- type = #{type,jdbcType=TINYINT},
|
42
|
+ type = #{type,jdbcType=VARCHAR},
|
85
|
</if>
|
43
|
</if>
|
86
|
</set>
|
44
|
</set>
|
87
|
where date_id = #{dateId,jdbcType=INTEGER}
|
45
|
where date_id = #{dateId,jdbcType=INTEGER}
|
|
@@ -91,7 +49,7 @@ |
|
@@ -91,7 +49,7 @@ |
91
|
<update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
|
49
|
<update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
|
92
|
update app_yoho_cps_new_uid
|
50
|
update app_yoho_cps_new_uid
|
93
|
set create_time = #{createTime,jdbcType=INTEGER},
|
51
|
set create_time = #{createTime,jdbcType=INTEGER},
|
94
|
- type = #{type,jdbcType=TINYINT}
|
52
|
+ type = #{type,jdbcType=VARCHAR}
|
95
|
where date_id = #{dateId,jdbcType=INTEGER}
|
53
|
where date_id = #{dateId,jdbcType=INTEGER}
|
96
|
and inviter_uid = #{inviterUid,jdbcType=INTEGER}
|
54
|
and inviter_uid = #{inviterUid,jdbcType=INTEGER}
|
97
|
and uid = #{uid,jdbcType=INTEGER}
|
55
|
and uid = #{uid,jdbcType=INTEGER}
|