Selaa lähdekoodia

增加塑造视频维度

jiequan.bi 4 vuotta sitten
vanhempi
commit
300dde6bac

+ 7 - 8
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/KsVideoReportMapper.xml

@@ -5,11 +5,11 @@
     <select id="queryVideoReportBy" resultType="com.alibaba.fastjson.JSONObject">
         SELECT * from (SELECT
         t1.signature,
-        t2.url,
+        t1.photo_url as url,
         (SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.clip_id=u.id where t3.material_id=t1.signature limit 1) AS clip,
         (SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.shot_id=u.id where t3.material_id=t1.signature limit 1) AS shot,
         (SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.plan_id=u.id where t3.material_id=t1.signature limit 1) AS plan,
-        t2.cover_url as converUrl,
+        t1.cover_url as converUrl,
         t2.material_name AS materialName,
         (SELECT project_name FROM ctop_project t4 WHERE t4.id = t3.project_id) AS projectName,
         t2.create_time as createTime,
@@ -30,9 +30,9 @@
         </if>
         GROUP BY t1.signature
         ) t
-        WHERE t.clip like '%${clip}%'
-        AND (t.shot LIKE '%%' or t.shot is null)
-        AND t.plan like '%${plan}%'
+        WHERE (t.clip LIKE '%${clip}%' or t.clip is null)
+        AND (t.shot LIKE '%${shot}%' or t.shot is null)
+        AND (t.plan LIKE '%${plan}%' or t.plan is null)
         ORDER BY ${target} ${order}
     </select>
 
@@ -40,8 +40,8 @@
         SELECT
         t1.stat_date as statDate,
         t1.signature,
-        t2.url,
-        t2.cover_url as converUrl,
+        t1.photo_url as url,
+        t1.cover_url as converUrl,
         t2.material_name AS materialName,
         (
         SELECT
@@ -75,7 +75,6 @@
                 #{item}
             </foreach>
         </if>
-        AND t2.url!=""
         GROUP BY t1.signature,t1.stat_date
     </select>
 </mapper>

+ 3 - 3
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/mapper/xml/BytedanceVideoReportMapper.xml

@@ -31,9 +31,9 @@
         AND t2.url!=""
         GROUP BY t1.signature
         ) t
-        WHERE t.clip like '%${clip}%'
-        AND (t.shot LIKE '%%' or t.shot is null)
-        AND t.plan like '%${plan}%'
+        WHERE (t.clip LIKE '%${clip}%' or t.clip is null)
+        AND (t.shot LIKE '%${shot}%' or t.shot is null)
+        AND (t.plan LIKE '%${plan}%' or t.plan is null)
         ORDER BY ${target} ${order}
     </select>