Przeglądaj źródła

1.短剧关联更正 2.错绑exclude

zhaotx 1 rok temu
rodzic
commit
bd20650437

+ 4 - 4
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/mapper/xml/ReportsAdPushMapper.xml

@@ -61,13 +61,13 @@
         order by end_amount desc
         ) tb1
         left join
-        (select distinct moive_id, movie_name, movie_source from deepthink.all_moive union
-        select series_id, ifnull(replace(series_name,REGEXP_SUBSTR(series_name, '[0-9]+$'),''),series_name),4 from media_api.kuaishou_drama_series_info) tb2 on tb1.movie_id=tb2.moive_id
+        (select distinct moive_id, REGEXP_REPLACE(movie_name, '[^a-zA-Z一-龥]', '') as movie_name, movie_source from deepthink.all_moive) tb2 on tb1.movie_id=tb2.moive_id
         group by movie_name order by rk limit 10) ot1
         left join
-        (select ifnull(replace(product_name,REGEXP_SUBSTR(product_name, '[0-9]+$'),''),product_name) as product_name, round(ifnull(sum(cost_amount),0),2) as cost_amount, sum(real_cost_amount) as real_cost_amount
-        from application.media_product_report_daily where stat_date=${date} group by ifnull(replace(product_name,REGEXP_SUBSTR(product_name, '[0-9]+$'),''),product_name)
+        (select REGEXP_REPLACE(product_name, '[^a-zA-Z一-龥]', '') as product_name, round(ifnull(sum(cost_amount),0),2) as cost_amount, sum(real_cost_amount) as real_cost_amount
+        from application.media_product_report_daily where stat_date=${date} group by REGEXP_REPLACE(product_name, '[^a-zA-Z一-龥]', '')
         ) ot2 on ot1.movie_name=ot2.product_name
+        group by case ot1.movie_source when 2 then movie_name else concat('欢瑞自制-', movie_name) end
         order by rk
     </select>
 

+ 46 - 1
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/BindAppErrorWarnServiceImpl.java

@@ -57,7 +57,52 @@ public class BindAppErrorWarnServiceImpl implements IBindAppErrorWarnService {
                 "1823380339959123",
                 "1823380339196992",
                 "1827747810800964",
-                "1829811636122179"
+                "1827667385038851",
+                "1827667399435403",
+                "1827667402245579",
+                "1827748343788739",
+                "1827748345325635",
+                "1828358491844875",
+                "1827667403434048",
+                "1827748305718340",
+                "1827748314617028",
+                "1827748315371844",
+                "1827748316159104",
+                "1827748329331716",
+                "1827748362022020",
+                "1828358436251652",
+                "1828358491300372",
+                "1827091021981001",
+                "1827091175024905",
+                "1827667400526089",
+                "1827667404926985",
+                "1827748344548361",
+                "1828358489754729",
+                "1827091002823178",
+                "1827091040257034",
+                "1827091042974730",
+                "1827091295794314",
+                "1827091296830474",
+                "1827667383341146",
+                "1827667401088266",
+                "1827667422337290",
+                "1827748302788810",
+                "1827748303331546",
+                "1827748325422730",
+                "1827091012362443",
+                "1827091138534787",
+                "1827091139263875",
+                "1827091174483275",
+                "1827091215388683",
+                "1827091226157443",
+                "1827091001685316",
+                "1827091018242244",
+                "1827091036861780",
+                "1827091064016004",
+                "1827091065574100",
+                "1827091179381908",
+                "1827091186144340",
+                "1827091295288320"
         );
         bindAppErrorWarnList.removeIf(i -> excludeAdvertiserIds.contains(String.valueOf(i.get("advertiser_id"))));