|
@@ -157,20 +157,20 @@
|
|
|
'image' as materialType
|
|
|
from ctop_bytedance_image_info image
|
|
|
where account_id = #{accountId}
|
|
|
- <if test="imageMode = '1'">
|
|
|
+ <if test="imageMode == '1'.toString()">
|
|
|
and image.type = '1'
|
|
|
</if>
|
|
|
- <if test="imageMode = '2'">
|
|
|
+ <if test="imageMode == '2'.toString()">
|
|
|
and (image.type = '2' or image.type = '4')
|
|
|
</if>
|
|
|
- <if test="imageMode = '3'">
|
|
|
+ <if test="imageMode == '3'.toString()">
|
|
|
and (image.type = '3' or image.type = '4')
|
|
|
</if>
|
|
|
- and image.create_time >= #{startTime}
|
|
|
- and image.create_time <= #{endTime}
|
|
|
+ and image.image_create_time >= #{startTime}
|
|
|
+ and image.image_create_time <= #{endTime}
|
|
|
having creativeCnt <= #{creativeCnt}
|
|
|
and creativeNum = 0
|
|
|
- order by create_time desc
|
|
|
+ order by image.image_create_time desc
|
|
|
limit #{videoCnt}
|
|
|
</select>
|
|
|
|
|
@@ -197,13 +197,13 @@
|
|
|
group by report.material_id
|
|
|
order by sum(report.cost) desc ) a
|
|
|
left join (select distinct a.* from ctop_bytedance_image_info a where 1 = 1 and a.account_id = #{accountId}
|
|
|
- <if test="imageMode = '1'">
|
|
|
+ <if test="imageMode == '1'.toString()">
|
|
|
and a.type = '1'
|
|
|
</if>
|
|
|
- <if test="imageMode = '2'">
|
|
|
+ <if test="imageMode == '2'.toString()">
|
|
|
and (a.type = '2' or a.type = '4')
|
|
|
</if>
|
|
|
- <if test="imageMode = '3'">
|
|
|
+ <if test="imageMode == '3'.toString()">
|
|
|
and (a.type = '3' or a.type = '4')
|
|
|
</if>)as image
|
|
|
on a.material_id = image.material_id
|
|
@@ -239,13 +239,13 @@
|
|
|
group by report.material_id
|
|
|
order by sum(report.cost) desc) a
|
|
|
left join (select distinct a.* from ctop_bytedance_image_info a where 1 = 1 and a.account_id =#{accountId}
|
|
|
- <if test="imageMode = '1'">
|
|
|
+ <if test="imageMode == '1'.toString()">
|
|
|
and a.type = '1'
|
|
|
</if>
|
|
|
- <if test="imageMode = '2'">
|
|
|
+ <if test="imageMode == '2'.toString()">
|
|
|
and (a.type = '2' or a.type = '4')
|
|
|
</if>
|
|
|
- <if test="imageMode = '3'">
|
|
|
+ <if test="imageMode == '3'.toString()">
|
|
|
and (a.type = '3' or a.type = '4')
|
|
|
</if>) as image
|
|
|
on a.material_id = image.material_id
|