songyh 3 лет назад
Родитель
Сommit
397831c28e

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

@@ -104,7 +104,7 @@
         left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode})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 =1
+        where cmi.id is not null
           and video.id is not null
           and cmi.offline_flag = 0
         and a.totalCost >= 500
@@ -133,7 +133,7 @@
                  left join (select distinct a.* from ctop_bytedance_video_info a where a.account_id = #{accountId} and a.type = #{imageMode})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 = 1
+        where cmi.id is not null
           and video.id is not null
           and cmi.offline_flag = 0
           and a.totalCost <= 100