|
|
@@ -214,12 +214,39 @@
|
|
|
<if test="province != null">province = #{province},</if>
|
|
|
<if test="commissionRequirement != null">commission_requirement = #{commissionRequirement},</if>
|
|
|
<if test="categoryRequirement != null">category_requirement = #{categoryRequirement},</if>
|
|
|
+ <if test="avgVideoSales != null">avg_video_sales = #{avgVideoSales},</if>
|
|
|
+ <if test="videoSales != null">video_sales = #{videoSales},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateKuaishouPromoterByPromoterId" parameterType="com.ruixuan.isc.entity.KuaishouPromoter">
|
|
|
+ update kuaishou_promoter
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
|
+ <if test="userName != null">user_name = #{userName},</if>
|
|
|
+ <if test="promoterId != null">promoter_id = #{promoterId},</if>
|
|
|
+ <if test="promoterNickName != null">promoter_nick_name = #{promoterNickName},</if>
|
|
|
+ <if test="totalSale != null">total_sale = #{totalSale},</if>
|
|
|
+ <if test="fansNumber != null">fans_number = #{fansNumber},</if>
|
|
|
+ <if test="promoterUrl != null">promoter_url = #{promoterUrl},</if>
|
|
|
+ <if test="phone != null">phone = #{phone},</if>
|
|
|
+ <if test="consignee != null">consignee = #{consignee},</if>
|
|
|
+ <if test="promoterAddress != null">promoter_address = #{promoterAddress},</if>
|
|
|
+ <if test="state != null">state = #{state},</if>
|
|
|
+ <if test="province != null">province = #{province},</if>
|
|
|
+ <if test="commissionRequirement != null">commission_requirement = #{commissionRequirement},</if>
|
|
|
+ <if test="categoryRequirement != null">category_requirement = #{categoryRequirement},</if>
|
|
|
+ <if test="avgVideoSales != null">avg_video_sales = #{avgVideoSales},</if>
|
|
|
+ <if test="videoSales != null">video_sales = #{videoSales},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ where promoter_id = #{promoterId}
|
|
|
+ </update>
|
|
|
+
|
|
|
<delete id="deleteKuaishouPromoterById" parameterType="Long">
|
|
|
delete
|
|
|
from kuaishou_promoter
|