|
@@ -74,16 +74,12 @@
|
|
|
|
|
|
-- t2.url url, -- 视频url
|
|
-- t2.url url, -- 视频url
|
|
|
|
|
|
- (SELECT url
|
|
|
|
- FROM ctop_kuaishou_video_get
|
|
|
|
- WHERE signature = t2.signature
|
|
|
|
- LIMIT 1
|
|
|
|
- ) url,
|
|
|
|
|
|
+ t2.photo_url as 'url',
|
|
t2.signature signature -- 视频md5
|
|
t2.signature signature -- 视频md5
|
|
from
|
|
from
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
left join
|
|
left join
|
|
- ctop_kuaishou_report_daily_creative t2
|
|
|
|
|
|
+ ctop_kuaishou_report_daily_material t2
|
|
on t1.account_id = t2.account_id
|
|
on t1.account_id = t2.account_id
|
|
|
|
|
|
<where>
|
|
<where>
|
|
@@ -248,13 +244,13 @@
|
|
ELSE 0
|
|
ELSE 0
|
|
END
|
|
END
|
|
) conversionPrice, -- 转化单价
|
|
) conversionPrice, -- 转化单价
|
|
- ( SELECT url from ctop_kuaishou_video_get WHERE signature = t2.signature limit 1) url,
|
|
|
|
|
|
+ t2.photo_url url,
|
|
-- t2.url url, -- 视频url
|
|
-- t2.url url, -- 视频url
|
|
t2.signature signature -- 视频md5
|
|
t2.signature signature -- 视频md5
|
|
from
|
|
from
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
left join
|
|
left join
|
|
- ctop_kuaishou_report_daily_creative t2
|
|
|
|
|
|
+ ctop_kuaishou_report_daily_material t2
|
|
on t1.account_id = t2.account_id
|
|
on t1.account_id = t2.account_id
|
|
<where>
|
|
<where>
|
|
<if test="userId != null">
|
|
<if test="userId != null">
|
|
@@ -338,7 +334,7 @@
|
|
END
|
|
END
|
|
) conversionPrice -- 转化单价
|
|
) conversionPrice -- 转化单价
|
|
from
|
|
from
|
|
- ctop_kuaishou_report_daily_creative
|
|
|
|
|
|
+ ctop_kuaishou_report_daily_material
|
|
<where>
|
|
<where>
|
|
<if test="signature != null">
|
|
<if test="signature != null">
|
|
and signature = #{signature}
|
|
and signature = #{signature}
|
|
@@ -511,11 +507,11 @@
|
|
END
|
|
END
|
|
) conversionPrice, -- 转化单价
|
|
) conversionPrice, -- 转化单价
|
|
|
|
|
|
- ( SELECT url from ctop_kuaishou_video_get WHERE signature = t1.signature limit 1) url,
|
|
|
|
|
|
+ t2.photo_url as 'url',
|
|
t1.signature signature, -- 视频md5
|
|
t1.signature signature, -- 视频md5
|
|
t1.account_id accountId
|
|
t1.account_id accountId
|
|
from
|
|
from
|
|
- ctop_kuaishou_report_daily_creative t1
|
|
|
|
|
|
+ ctop_kuaishou_report_daily_material t1
|
|
where t1.account_id in
|
|
where t1.account_id in
|
|
<foreach item="item" index="index" collection="accountIds"
|
|
<foreach item="item" index="index" collection="accountIds"
|
|
open="(" separator="," close=")">
|
|
open="(" separator="," close=")">
|