|
@@ -1031,6 +1031,8 @@
|
|
|
then '石家庄'
|
|
|
when company_name like '%聚意%'
|
|
|
then '聚意'
|
|
|
+ when company_name like '%北京骄阳%'
|
|
|
+ then '骄阳'
|
|
|
else '-'
|
|
|
end
|
|
|
) as 'companyName',
|
|
@@ -1134,6 +1136,8 @@
|
|
|
then '石家庄'
|
|
|
when company_name like '%聚意%'
|
|
|
then '聚意'
|
|
|
+ when company_name like '%北京骄阳%'
|
|
|
+ then '骄阳'
|
|
|
else '-'
|
|
|
end
|
|
|
) as 'companyName',
|
|
@@ -1238,6 +1242,8 @@
|
|
|
then '石家庄'
|
|
|
when company_name like '%聚意%'
|
|
|
then '聚意'
|
|
|
+ when company_name like '%北京骄阳%'
|
|
|
+ then '骄阳'
|
|
|
else '-'
|
|
|
end
|
|
|
) as 'companyName',
|
|
@@ -1591,6 +1597,8 @@
|
|
|
then '石家庄'
|
|
|
when company_name like '%聚意%'
|
|
|
then '聚意'
|
|
|
+ when company_name like '%北京骄阳%'
|
|
|
+ then '骄阳'
|
|
|
else '-'
|
|
|
end
|
|
|
) as 'companyName',
|
|
@@ -1922,7 +1930,7 @@
|
|
|
order by t1.totalCount desc
|
|
|
</select>
|
|
|
<select id="getByteDanceVideoData" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
- select * from (
|
|
|
+ select * from (
|
|
|
select
|
|
|
(case when company_name like '%北京汇创%'
|
|
|
then '汇创'
|
|
@@ -1930,6 +1938,8 @@
|
|
|
then '石家庄'
|
|
|
when company_name like '%聚意%'
|
|
|
then '聚意'
|
|
|
+ when company_name like '%北京骄阳%'
|
|
|
+ then '骄阳'
|
|
|
else '-'
|
|
|
end
|
|
|
) as 'companyName',
|
|
@@ -1946,7 +1956,7 @@
|
|
|
cover_url as 'coverUrl',
|
|
|
video_url as 'videoUrl'
|
|
|
from application.bytedance_material_video_report_daily_dw
|
|
|
- where 1 = 1
|
|
|
+ where 1 = 1
|
|
|
<if test="companyId != null and companyId != ''">
|
|
|
and clip_company_id = #{companyId}
|
|
|
</if>
|
|
@@ -1964,13 +1974,14 @@
|
|
|
</if>
|
|
|
and stat_datetime >= #{start}
|
|
|
and stat_datetime <= #{end}
|
|
|
- group by signature
|
|
|
- ) t order by t.totalCharge desc
|
|
|
+ and signature is not null
|
|
|
+ and clip_id is not null
|
|
|
+ group by signature
|
|
|
+ ) t order by t.totalCharge desc
|
|
|
|
|
|
</select>
|
|
|
<select id="getKuaiShouVideoData" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
-
|
|
|
- select * from (
|
|
|
+ select * from (
|
|
|
select
|
|
|
(case when company_name like '%北京汇创%'
|
|
|
then '汇创'
|
|
@@ -1978,6 +1989,8 @@
|
|
|
then '石家庄'
|
|
|
when company_name like '%聚意%'
|
|
|
then '聚意'
|
|
|
+ when company_name like '%北京骄阳%'
|
|
|
+ then '骄阳'
|
|
|
else '-'
|
|
|
end
|
|
|
) as 'companyName',
|
|
@@ -1994,7 +2007,7 @@
|
|
|
cover_url as 'coverUrl',
|
|
|
photo_url as 'videoUrl'
|
|
|
from application.kuaishou_material_video_report_daily_dw
|
|
|
- where 1 = 1
|
|
|
+ where 1 = 1
|
|
|
<if test="companyId != null and companyId != ''">
|
|
|
and clip_company_id = #{companyId}
|
|
|
</if>
|
|
@@ -2013,8 +2026,9 @@
|
|
|
and stat_date >= #{start}
|
|
|
and stat_date <= #{end}
|
|
|
and signature is not null
|
|
|
- group by signature
|
|
|
- ) t order by t.totalCharge desc
|
|
|
+ and clip_id is not null
|
|
|
+ group by signature
|
|
|
+ ) t order by t.totalCharge desc
|
|
|
|
|
|
</select>
|
|
|
</mapper>
|