浏览代码

数据修改

yumeng 1 年之前
父节点
当前提交
2060a996f7
共有 1 个文件被更改,包括 15 次插入1 次删除
  1. 15 1
      ruixuan-live/src/main/resources/mapper/jiaoyang/JiaoYangReportMapper.xml

+ 15 - 1
ruixuan-live/src/main/resources/mapper/jiaoyang/JiaoYangReportMapper.xml

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