Explorar el Código

快手素材报表

yumeng hace 4 años
padre
commit
95510d2c48

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

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