Browse Source

V1.1.3 自动投放 素材接口加入状态判断

yumeng 4 years ago
parent
commit
a7a8289591

+ 2 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouVideoGetMapper.xml

@@ -113,8 +113,9 @@
             and stat_date <= #{endTime}
         </if>
         <if test="appVersion != null and appVersion != '' ">
-            and photo_name like concat(#{appVersion}'%')
+            photo_name like concat(#{appVersion}'%')
         </if>
+        and status = 0
         group by signature
         order by stat_date desc
     </select>

+ 3 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaishouVideoRelateCreativesMapper.xml

@@ -45,6 +45,7 @@
             select photo_id from ctop_kuaishou_video_get
             where account_id = #{accountId}
             and photo_name like concat(#{appVersion}'%')
+            and status = 0
             )
         </if>
         LIMIT #{num}
@@ -74,6 +75,7 @@
             select photo_id from ctop_kuaishou_video_get
             where account_id = #{accountId}
             and photo_name like concat(#{appVersion}'%')
+            and status = 0
             )
         </if>
         ORDER BY stat_date ASC
@@ -105,6 +107,7 @@
         <if test="appVersion != null and appVersion != '' ">
             and photo_name like concat(#{appVersion}'%')
         </if>
+        and status = 0
         and signature is not null
         )
         GROUP BY