浏览代码

数据看板,素材爆款率修改

yangzian 3 年之前
父节点
当前提交
c0910795b7

+ 14 - 14
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/BossDataExhibitionMapper.xml

@@ -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 &gt;= #{startTime}
@@ -200,7 +200,7 @@
             <if test="endTime !=null and endTime != ''">
                 AND help_time &lt;= #{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 &gt;= #{startTime}
@@ -229,7 +229,7 @@
             <if test="endTime !=null and endTime != ''">
                 AND help_time &lt;= #{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 &gt;= #{startTime}
@@ -264,10 +264,10 @@
         application.app_bytedance_material_info
         <where>
             <if test="startTime !=null and startTime != ''">
-                AND help_time &gt;= #{startTime}
+                AND media_time &gt;= #{startTime}
             </if>
             <if test="endTime !=null and endTime != ''">
-                AND help_time &lt;= #{endTime}
+                AND media_time &lt;= #{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 &gt;= #{startTime}
@@ -295,10 +295,10 @@
         application.app_kuaishou_material_info
         <where>
             <if test="startTime !=null and startTime != ''">
-                AND help_time &gt;= #{startTime}
+                AND media_time &gt;= #{startTime}
             </if>
             <if test="endTime !=null and endTime != ''">
-                AND help_time &lt;= #{endTime}
+                AND media_time &lt;= #{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 &gt;= #{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 &gt;= #{startTime}