Prechádzať zdrojové kódy

自动创建-筛选视频素材状态为1-正常

yangzian 3 rokov pred
rodič
commit
ac8061db5d

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

@@ -79,6 +79,7 @@
         and cmi.code is not null
         and cmi.status = 1
         and cmi.offline_flag = 0
+        and video.status = 1
         and video.type = #{imageMode}
         and material_upload_time >= #{startTime}
         and material_upload_time <= #{endTime}
@@ -101,7 +102,7 @@
         and report.stat_datetime <= #{endTime}
         group by report.material_id
         order by sum(report.cost) desc ) a
-        left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode})as video
+        left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode} and a.status = 1)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
@@ -130,7 +131,7 @@
                 and report.stat_datetime <= #{endTime}
               group by report.material_id
               order by sum(report.cost) desc ) a
-                 left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode})as video
+                 left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode} and a.status = 1)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