...
|
...
|
@@ -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}
|
...
|
...
|
|