|
@@ -112,6 +112,13 @@
|
|
<if test="promoterNickName != null and promoterNickName != '' ">
|
|
<if test="promoterNickName != null and promoterNickName != '' ">
|
|
and clip_nick_name like concat(concat('%',#{promoterNickName}),'%')
|
|
and clip_nick_name like concat(concat('%',#{promoterNickName}),'%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test='promoterIds != null and promoterIds.size() > 0'>
|
|
|
|
+ AND clip_user_id in
|
|
|
|
+ <foreach collection="promoterIds" item="item" separator=","
|
|
|
|
+ open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
group by clip_user_id) t
|
|
group by clip_user_id) t
|
|
left join jy_clip_cooperation tt on t.promoterId = tt.clip_id
|
|
left join jy_clip_cooperation tt on t.promoterId = tt.clip_id
|
|
left join jy_kuaishou_promoter ttt on t.promoterId = ttt.promoter_id
|
|
left join jy_kuaishou_promoter ttt on t.promoterId = ttt.promoter_id
|
|
@@ -155,6 +162,13 @@
|
|
<if test="itemTitle != null and itemTitle != ''">
|
|
<if test="itemTitle != null and itemTitle != ''">
|
|
and item_title like concat(concat('%',#{itemTitle}),'%')
|
|
and item_title like concat(concat('%',#{itemTitle}),'%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test='promoterIds != null and promoterIds.size() > 0'>
|
|
|
|
+ AND clip_user_id in
|
|
|
|
+ <foreach collection="promoterIds" item="item" separator=","
|
|
|
|
+ open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
group by item_id) t
|
|
group by item_id) t
|
|
order by t.orderNum desc
|
|
order by t.orderNum desc
|
|
</select>
|
|
</select>
|
|
@@ -599,7 +613,7 @@
|
|
</select>
|
|
</select>
|
|
<select id="getPromoterIdsByUserIds" resultType="java.lang.Long">
|
|
<select id="getPromoterIdsByUserIds" resultType="java.lang.Long">
|
|
select promoter_id from jy_kuaishou_promoter where
|
|
select promoter_id from jy_kuaishou_promoter where
|
|
- 1 = 1
|
|
|
|
|
|
+ 1 = 1
|
|
and user_id in
|
|
and user_id in
|
|
<foreach collection="userIds" item="userId" separator="," open="(" close=")">
|
|
<foreach collection="userIds" item="userId" separator="," open="(" close=")">
|
|
#{userId}
|
|
#{userId}
|