|
@@ -189,10 +189,10 @@
|
|
|
<!-- 素材相关===素材使用率===头条 -->
|
|
|
<select id="getMeterialUseRateBytedanc" resultType="java.util.LinkedHashMap">
|
|
|
SELECT t.*,
|
|
|
- ROUND(t.bytedanceTatol / t.total * 100,2) as useRate
|
|
|
+ ROUND(t.bytedanceTotal / t.total * 100,2) as useRate
|
|
|
from (
|
|
|
SELECT COUNT(material_id) total,
|
|
|
- (SELECT COUNT(material_id) tatol from application.app_bytedance_material_info
|
|
|
+ (SELECT COUNT(material_id) total from application.app_bytedance_material_info
|
|
|
where sync_bytedance = 2
|
|
|
<if test="startTime !=null and startTime != ''">
|
|
|
AND help_time >= #{startTime}
|
|
@@ -200,7 +200,7 @@
|
|
|
<if test="endTime !=null and endTime != ''">
|
|
|
AND help_time <= #{endTime}
|
|
|
</if>
|
|
|
- ) as bytedanceTatol
|
|
|
+ ) as bytedanceTotal
|
|
|
FROM
|
|
|
application.app_bytedance_material_info
|
|
|
<where>
|
|
@@ -218,10 +218,10 @@
|
|
|
<!-- 素材相关===素材使用率===快手 -->
|
|
|
<select id="getMeterialUseRateKuaishou" resultType="java.util.LinkedHashMap">
|
|
|
SELECT t.*,
|
|
|
- ROUND(t.kuaiShouTatol / t.total * 100,2) as useRate
|
|
|
+ ROUND(t.kuaiShouTotal / t.total * 100,2) as useRate
|
|
|
from (
|
|
|
SELECT COUNT(material_id) total,
|
|
|
- (SELECT COUNT(material_id) tatol from application.app_kuaishou_material_info
|
|
|
+ (SELECT COUNT(material_id) total from application.app_kuaishou_material_info
|
|
|
where sync_kuaishou = 2
|
|
|
<if test="startTime !=null and startTime != ''">
|
|
|
AND help_time >= #{startTime}
|
|
@@ -229,7 +229,7 @@
|
|
|
<if test="endTime !=null and endTime != ''">
|
|
|
AND help_time <= #{endTime}
|
|
|
</if>
|
|
|
- ) as kuaiShouTatol
|
|
|
+ ) as kuaiShouTotal
|
|
|
FROM
|
|
|
application.app_kuaishou_material_info
|
|
|
<where>
|
|
@@ -250,7 +250,7 @@
|
|
|
FROM
|
|
|
(
|
|
|
SELECT COUNT(material_id) total,
|
|
|
- (SELECT COUNT(material_id) tatol from application.app_bytedance_material_info
|
|
|
+ (SELECT COUNT(material_id) total from application.app_bytedance_material_info
|
|
|
<where>
|
|
|
<if test="startTime !=null and startTime != ''">
|
|
|
AND faddish_date >= #{startTime}
|
|
@@ -264,10 +264,10 @@
|
|
|
application.app_bytedance_material_info
|
|
|
<where>
|
|
|
<if test="startTime !=null and startTime != ''">
|
|
|
- AND help_time >= #{startTime}
|
|
|
+ AND media_time >= #{startTime}
|
|
|
</if>
|
|
|
<if test="endTime !=null and endTime != ''">
|
|
|
- AND help_time <= #{endTime}
|
|
|
+ AND media_time <= #{endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
) t
|
|
@@ -281,7 +281,7 @@
|
|
|
FROM
|
|
|
(
|
|
|
SELECT COUNT(material_id) total,
|
|
|
- (SELECT COUNT(material_id) tatol from application.app_kuaishou_material_info
|
|
|
+ (SELECT COUNT(material_id) total from application.app_kuaishou_material_info
|
|
|
<where>
|
|
|
<if test="startTime !=null and startTime != ''">
|
|
|
AND faddish_date >= #{startTime}
|
|
@@ -295,10 +295,10 @@
|
|
|
application.app_kuaishou_material_info
|
|
|
<where>
|
|
|
<if test="startTime !=null and startTime != ''">
|
|
|
- AND help_time >= #{startTime}
|
|
|
+ AND media_time >= #{startTime}
|
|
|
</if>
|
|
|
<if test="endTime !=null and endTime != ''">
|
|
|
- AND help_time <= #{endTime}
|
|
|
+ AND media_time <= #{endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
) t
|
|
@@ -311,7 +311,7 @@
|
|
|
FROM
|
|
|
(
|
|
|
SELECT COUNT(material_id) total,
|
|
|
- (SELECT COUNT(material_id) tatol from application.app_bytedance_material_info
|
|
|
+ (SELECT COUNT(material_id) total from application.app_bytedance_material_info
|
|
|
where material_innovate = 2
|
|
|
<if test="startTime !=null and startTime != ''">
|
|
|
AND help_time >= #{startTime}
|
|
@@ -340,7 +340,7 @@
|
|
|
FROM
|
|
|
(
|
|
|
SELECT COUNT(material_id) total,
|
|
|
- (SELECT COUNT(material_id) tatol from application.app_kuaishou_material_info
|
|
|
+ (SELECT COUNT(material_id) total from application.app_kuaishou_material_info
|
|
|
where material_innovate = 2
|
|
|
<if test="startTime !=null and startTime != ''">
|
|
|
AND help_time >= #{startTime}
|