Authored by gemingdan

大数据表结构变动

@@ -9,10 +9,6 @@ import java.util.List; @@ -9,10 +9,6 @@ import java.util.List;
9 public interface AppYohoCpsNewUidMapper { 9 public interface AppYohoCpsNewUidMapper {
10 int deleteByPrimaryKey(AppYohoCpsNewUidKey key); 10 int deleteByPrimaryKey(AppYohoCpsNewUidKey key);
11 11
12 - int insert(AppYohoCpsNewUid record);  
13 -  
14 - int insertSelective(AppYohoCpsNewUid record);  
15 -  
16 AppYohoCpsNewUid selectByPrimaryKey(AppYohoCpsNewUidKey key); 12 AppYohoCpsNewUid selectByPrimaryKey(AppYohoCpsNewUidKey key);
17 13
18 List<AppYohoCpsNewUid> selectListByDateId(@Param("dateId") Integer dateId); 14 List<AppYohoCpsNewUid> selectListByDateId(@Param("dateId") Integer dateId);
1 package com.yoho.unions.dal.model; 1 package com.yoho.unions.dal.model;
2 2
3 -import java.util.Date;  
4 -  
5 public class AppYohoCpsNewUid extends AppYohoCpsNewUidKey { 3 public class AppYohoCpsNewUid extends AppYohoCpsNewUidKey {
6 private Integer createTime; 4 private Integer createTime;
7 5
8 - private Byte type; 6 + private String type;
  7 + private String appKey;
9 8
10 public Integer getCreateTime() { 9 public Integer getCreateTime() {
11 return createTime; 10 return createTime;
@@ -15,11 +14,19 @@ public class AppYohoCpsNewUid extends AppYohoCpsNewUidKey { @@ -15,11 +14,19 @@ public class AppYohoCpsNewUid extends AppYohoCpsNewUidKey {
15 this.createTime = createTime; 14 this.createTime = createTime;
16 } 15 }
17 16
18 - public Byte getType() { 17 + public String getType() {
19 return type; 18 return type;
20 } 19 }
21 20
22 - public void setType(Byte type) { 21 + public void setType(String type) {
23 this.type = type; 22 this.type = type;
24 } 23 }
  24 +
  25 + public String getAppKey() {
  26 + return appKey;
  27 + }
  28 +
  29 + public void setAppKey(String appKey) {
  30 + this.appKey = appKey;
  31 + }
25 } 32 }
@@ -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}