Authored by gemingdan

大数据表结构变动

... ... @@ -9,10 +9,6 @@ import java.util.List;
public interface AppYohoCpsNewUidMapper {
int deleteByPrimaryKey(AppYohoCpsNewUidKey key);
int insert(AppYohoCpsNewUid record);
int insertSelective(AppYohoCpsNewUid record);
AppYohoCpsNewUid selectByPrimaryKey(AppYohoCpsNewUidKey key);
List<AppYohoCpsNewUid> selectListByDateId(@Param("dateId") Integer dateId);
... ...
package com.yoho.unions.dal.model;
import java.util.Date;
public class AppYohoCpsNewUid extends AppYohoCpsNewUidKey {
private Integer createTime;
private Byte type;
private String type;
private String appKey;
public Integer getCreateTime() {
return createTime;
... ... @@ -15,11 +14,19 @@ public class AppYohoCpsNewUid extends AppYohoCpsNewUidKey {
this.createTime = createTime;
}
public Byte getType() {
public String getType() {
return type;
}
public void setType(Byte type) {
public void setType(String type) {
this.type = type;
}
public String getAppKey() {
return appKey;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
}
}
\ No newline at end of file
... ...
... ... @@ -6,10 +6,11 @@
<id column="inviter_uid" property="inviterUid" jdbcType="INTEGER" />
<id column="uid" property="uid" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="type" property="type" jdbcType="TINYINT" />
<result column="type" property="type" jdbcType="VARCHAR" />
<result column="app_key" property="appKey" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
date_id, inviter_uid, uid, create_time, type
date_id, inviter_uid, uid, create_time, type,app_key
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUidKey" >
select
... ... @@ -31,49 +32,6 @@
and inviter_uid = #{inviterUid,jdbcType=INTEGER}
and uid = #{uid,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
insert into app_yoho_cps_new_uid (date_id, inviter_uid, uid,
create_time, type)
values (#{dateId,jdbcType=INTEGER}, #{inviterUid,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER},
#{createTime,jdbcType=INTEGER}, #{type,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
insert into app_yoho_cps_new_uid
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="dateId != null" >
date_id,
</if>
<if test="inviterUid != null" >
inviter_uid,
</if>
<if test="uid != null" >
uid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="type != null" >
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="dateId != null" >
#{dateId,jdbcType=INTEGER},
</if>
<if test="inviterUid != null" >
#{inviterUid,jdbcType=INTEGER},
</if>
<if test="uid != null" >
#{uid,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="type != null" >
#{type,jdbcType=TINYINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
update app_yoho_cps_new_uid
<set >
... ... @@ -81,7 +39,7 @@
create_time = #{createTime,jdbcType=INTEGER},
</if>
<if test="type != null" >
type = #{type,jdbcType=TINYINT},
type = #{type,jdbcType=VARCHAR},
</if>
</set>
where date_id = #{dateId,jdbcType=INTEGER}
... ... @@ -91,7 +49,7 @@
<update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.AppYohoCpsNewUid" >
update app_yoho_cps_new_uid
set create_time = #{createTime,jdbcType=INTEGER},
type = #{type,jdbcType=TINYINT}
type = #{type,jdbcType=VARCHAR}
where date_id = #{dateId,jdbcType=INTEGER}
and inviter_uid = #{inviterUid,jdbcType=INTEGER}
and uid = #{uid,jdbcType=INTEGER}
... ...