|
@@ -7,6 +7,7 @@
|
|
|
<resultMap type="com.ruixuan.isc.entity.KuaishouPromoter" id="KuaishouPromoterResult">
|
|
<resultMap type="com.ruixuan.isc.entity.KuaishouPromoter" id="KuaishouPromoterResult">
|
|
|
<result property="id" column="id"/>
|
|
<result property="id" column="id"/>
|
|
|
<result property="userId" column="user_id"/>
|
|
<result property="userId" column="user_id"/>
|
|
|
|
|
+ <result property="mediaId" column="media_id"/>
|
|
|
<result property="userName" column="user_name"/>
|
|
<result property="userName" column="user_name"/>
|
|
|
<result property="promoterId" column="promoter_id"/>
|
|
<result property="promoterId" column="promoter_id"/>
|
|
|
<result property="promoterNickName" column="promoter_nick_name"/>
|
|
<result property="promoterNickName" column="promoter_nick_name"/>
|
|
@@ -32,6 +33,7 @@
|
|
|
|
|
|
|
|
<sql id="selectKuaishouPromoterVo">
|
|
<sql id="selectKuaishouPromoterVo">
|
|
|
select id,
|
|
select id,
|
|
|
|
|
+ media_id,
|
|
|
user_id,
|
|
user_id,
|
|
|
user_name,
|
|
user_name,
|
|
|
promoter_id,
|
|
promoter_id,
|
|
@@ -57,6 +59,7 @@
|
|
|
SELECT
|
|
SELECT
|
|
|
t1.id,
|
|
t1.id,
|
|
|
t1.user_id,
|
|
t1.user_id,
|
|
|
|
|
+ t1.media_id,
|
|
|
t1.user_name,
|
|
t1.user_name,
|
|
|
t1.promoter_id,
|
|
t1.promoter_id,
|
|
|
t1.promoter_nick_name,
|
|
t1.promoter_nick_name,
|
|
@@ -91,6 +94,9 @@
|
|
|
<if test="promoterNickName != null and promoterNickName != ''">
|
|
<if test="promoterNickName != null and promoterNickName != ''">
|
|
|
and t1.promoter_nick_name like concat('%', #{promoterNickName}, '%')
|
|
and t1.promoter_nick_name like concat('%', #{promoterNickName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="mediaId != null and mediaId != ''">
|
|
|
|
|
+ and t1.media_id = #{mediaId}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
order by ${parameter} ${orderBy}
|
|
order by ${parameter} ${orderBy}
|
|
|
</select>
|
|
</select>
|
|
@@ -238,6 +244,7 @@
|
|
|
insert into kuaishou_promoter
|
|
insert into kuaishou_promoter
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id,</if>
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
|
+ <if test="mediaId != null">media_id,</if>
|
|
|
<if test="userName != null">user_name,</if>
|
|
<if test="userName != null">user_name,</if>
|
|
|
<if test="promoterId != null">promoter_id,</if>
|
|
<if test="promoterId != null">promoter_id,</if>
|
|
|
<if test="promoterNickName != null">promoter_nick_name,</if>
|
|
<if test="promoterNickName != null">promoter_nick_name,</if>
|
|
@@ -256,6 +263,7 @@
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
|
+ <if test="mediaId != null">#{mediaId},</if>
|
|
|
<if test="userName != null">#{userName},</if>
|
|
<if test="userName != null">#{userName},</if>
|
|
|
<if test="promoterId != null">#{promoterId},</if>
|
|
<if test="promoterId != null">#{promoterId},</if>
|
|
|
<if test="promoterNickName != null">#{promoterNickName},</if>
|
|
<if test="promoterNickName != null">#{promoterNickName},</if>
|
|
@@ -294,6 +302,7 @@
|
|
|
update kuaishou_promoter
|
|
update kuaishou_promoter
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
|
|
+ <if test="mediaId != null">media_id = #{mediaId},</if>
|
|
|
<if test="userName != null">user_name = #{userName},</if>
|
|
<if test="userName != null">user_name = #{userName},</if>
|
|
|
<if test="promoterId != null">promoter_id = #{promoterId},</if>
|
|
<if test="promoterId != null">promoter_id = #{promoterId},</if>
|
|
|
<if test="promoterNickName != null">promoter_nick_name = #{promoterNickName},</if>
|
|
<if test="promoterNickName != null">promoter_nick_name = #{promoterNickName},</if>
|
|
@@ -319,6 +328,7 @@
|
|
|
update kuaishou_promoter
|
|
update kuaishou_promoter
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
|
|
+ <if test="mediaId != null">media_id = #{mediaId},</if>
|
|
|
<if test="userName != null">user_name = #{userName},</if>
|
|
<if test="userName != null">user_name = #{userName},</if>
|
|
|
<if test="promoterId != null">promoter_id = #{promoterId},</if>
|
|
<if test="promoterId != null">promoter_id = #{promoterId},</if>
|
|
|
<if test="promoterNickName != null">promoter_nick_name = #{promoterNickName},</if>
|
|
<if test="promoterNickName != null">promoter_nick_name = #{promoterNickName},</if>
|