Parcourir la source

过滤已经被拒的视频素材自动创建

songyh il y a 4 ans
Parent
commit
75f82b0827

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 124894
db/jeecgboot-sqlserver2017.sql


+ 3 - 2
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/mapper/xml/ByteDanceVideoInfoMapper.xml

@@ -76,6 +76,7 @@
         left join ctop_material_info cmi on video.signature = cmi.code and cmi.project_id = #{projectId}
         where account_id = #{accountId}
         and cmi.code is not null
+        and cmi.status = 1
         and cmi.offline_flag = 0
         and material_upload_time >= #{startTime}
         and material_upload_time <= #{endTime}
@@ -100,7 +101,7 @@
         left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId})as video
         on a.material_id = video.material_id
         left join ctop_material_info cmi on cmi.code = video.signature and cmi.project_id = #{projectId}
-        where cmi.id is not null
+        where cmi.id =1
           and video.id is not null
           and cmi.offline_flag = 0
         and a.totalCost >= 500
@@ -128,7 +129,7 @@
                  left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId})as video
                            on a.material_id = video.material_id
                  left join ctop_material_info cmi on cmi.code = video.signature and cmi.project_id = #{projectId}
-        where cmi.id is not null
+        where cmi.id = 1
           and video.id is not null
           and cmi.offline_flag = 0
           and a.totalCost <= 100

+ 0 - 13
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/AiBytedanceAdvertiserStrategyServiceImpl.java

@@ -289,19 +289,6 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
         JSONArray titleArray = new JSONArray();
         List<BytedanceVideoSlogenInfo> slogenInfos = slogenInfoService.listByParams(videoInfo.getSignature(),1);
         if(!Check.isNull(slogenInfos)){
-//            slogenInfos.forEach(slogenInfo->{
-////                JSONObject titleObject = new JSONObject();
-////                titleObject.put("title",slogenInfo.getSlogan());
-////                String creativeWordsIds = slogenInfo.getCreativeWordIds();
-////                if(null!=creativeWordsIds&&!creativeWordsIds.trim().equals("")){
-////                    JSONArray creativeWordsArray = JSON.parseArray(creativeWordsIds);
-////                    if(null!=creativeWordsArray&&!creativeWordsArray.isEmpty()){
-////                        titleObject.put("creative_word_ids",creativeWordsArray);
-////                    }
-////                }
-////                titleArray.add(titleObject);
-////            });
-
             for (BytedanceVideoSlogenInfo slogenInfo:slogenInfos) {
                 if(titleArray.size() >= 10){    //接口中是要求一个视频最多10个标题
                     break;