|
@@ -34,6 +34,7 @@
|
|
<result property="awemeDiggFollowerRation" column="aweme_digg_follower_ration"/>
|
|
<result property="awemeDiggFollowerRation" column="aweme_digg_follower_ration"/>
|
|
<result property="liveAverageUser30" column="live_average_user_30"/>
|
|
<result property="liveAverageUser30" column="live_average_user_30"/>
|
|
<result property="followUpRecord" column="txt"/>
|
|
<result property="followUpRecord" column="txt"/>
|
|
|
|
+ <result property="imageUrl" column="image_url"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectKuaishouPromoterVo">
|
|
<sql id="selectKuaishouPromoterVo">
|
|
@@ -55,6 +56,7 @@
|
|
fans_number,
|
|
fans_number,
|
|
avg_video_sales,
|
|
avg_video_sales,
|
|
video_sales,
|
|
video_sales,
|
|
|
|
+ image_url,
|
|
create_time,
|
|
create_time,
|
|
update_time
|
|
update_time
|
|
from kuaishou_promoter
|
|
from kuaishou_promoter
|
|
@@ -76,6 +78,7 @@
|
|
t1.phone,
|
|
t1.phone,
|
|
t1.consignee,
|
|
t1.consignee,
|
|
t1.promoter_address,
|
|
t1.promoter_address,
|
|
|
|
+ t1.image_url,
|
|
if(t1.media_id = 1, t1.total_sale,t3.total_sale ) as 'total_sale',
|
|
if(t1.media_id = 1, t1.total_sale,t3.total_sale ) as 'total_sale',
|
|
if(t1.media_id = 1, t1.fans_number,t3.fans_number ) as 'fans_number',
|
|
if(t1.media_id = 1, t1.fans_number,t3.fans_number ) as 'fans_number',
|
|
if(t1.media_id = 1, t1.avg_video_sales,t3.avg_video_sales ) as 'avg_video_sales',
|
|
if(t1.media_id = 1, t1.avg_video_sales,t3.avg_video_sales ) as 'avg_video_sales',
|
|
@@ -123,6 +126,13 @@
|
|
<if test="mediaId != null and mediaId != ''">
|
|
<if test="mediaId != null and mediaId != ''">
|
|
and t1.media_id = #{mediaId}
|
|
and t1.media_id = #{mediaId}
|
|
</if>
|
|
</if>
|
|
|
|
+
|
|
|
|
+ <if test="searchPhone != null and searchPhone == 1">
|
|
|
|
+ and t1.phone != ''
|
|
|
|
+ </if>
|
|
|
|
+ <if test="searchPhone != null and searchPhone == 2">
|
|
|
|
+ and t1.phone = ''
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
order by ${parameter} ${orderBy}
|
|
order by ${parameter} ${orderBy}
|
|
</select>
|
|
</select>
|
|
@@ -485,6 +495,7 @@
|
|
<if test="phone != null">phone,</if>
|
|
<if test="phone != null">phone,</if>
|
|
<if test="consignee != null">consignee,</if>
|
|
<if test="consignee != null">consignee,</if>
|
|
<if test="promoterAddress != null">promoter_address,</if>
|
|
<if test="promoterAddress != null">promoter_address,</if>
|
|
|
|
+ <if test="imageUrl != null">image_url,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="userId != null">#{userId},</if>
|
|
<if test="userId != null">#{userId},</if>
|
|
@@ -504,6 +515,7 @@
|
|
<if test="phone != null">#{phone},</if>
|
|
<if test="phone != null">#{phone},</if>
|
|
<if test="consignee != null">#{consignee},</if>
|
|
<if test="consignee != null">#{consignee},</if>
|
|
<if test="promoterAddress != null">#{promoterAddress},</if>
|
|
<if test="promoterAddress != null">#{promoterAddress},</if>
|
|
|
|
+ <if test="imageUrl != null">#{imageUrl},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -598,6 +610,7 @@
|
|
<if test="categoryRequirement != null">category_requirement = #{categoryRequirement},</if>
|
|
<if test="categoryRequirement != null">category_requirement = #{categoryRequirement},</if>
|
|
<if test="avgVideoSales != null">avg_video_sales = #{avgVideoSales},</if>
|
|
<if test="avgVideoSales != null">avg_video_sales = #{avgVideoSales},</if>
|
|
<if test="videoSales != null">video_sales = #{videoSales},</if>
|
|
<if test="videoSales != null">video_sales = #{videoSales},</if>
|
|
|
|
+ <if test="imageUrl != null">image_url = #{imageUrl},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
</trim>
|
|
</trim>
|
|
@@ -662,6 +675,7 @@
|
|
<if test="awemeAvgDiggCount30 != null">aweme_avg_digg_count_30 = #{awemeAvgDiggCount30},</if>
|
|
<if test="awemeAvgDiggCount30 != null">aweme_avg_digg_count_30 = #{awemeAvgDiggCount30},</if>
|
|
<if test="awemeDiggFollowerRation != null">aweme_digg_follower_ration = #{awemeDiggFollowerRation},</if>
|
|
<if test="awemeDiggFollowerRation != null">aweme_digg_follower_ration = #{awemeDiggFollowerRation},</if>
|
|
<if test="liveAverageUser30 != null">live_average_user_30 = #{liveAverageUser30},</if>
|
|
<if test="liveAverageUser30 != null">live_average_user_30 = #{liveAverageUser30},</if>
|
|
|
|
+ <if test="imageUrl != null">image_url = #{imageUrl},</if>
|
|
</trim>
|
|
</trim>
|
|
where promoter_id = #{promoterId}
|
|
where promoter_id = #{promoterId}
|
|
</update>
|
|
</update>
|