zhaotx 1 год назад
Родитель
Сommit
627ff3c37b

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

@@ -553,6 +553,7 @@
         group_concat(distinct case tb4.movie_source when 2 then '2' else '1' end) as movie_source,
         rank() over (order by sum(share_iaa_amount)+sum(share_pay_amount) desc) as rk,
         <include refid="endAmount"/>,
+        <include refid="waterEndAmount"/>,
         <include refid="costAmount"/>
         from
         (select movie_id from application.media_ad_report_daily where stat_date=${date}

+ 6 - 5
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/ReportsByBusinessPushServiceImpl.java

@@ -36,7 +36,7 @@ public class ReportsByBusinessPushServiceImpl implements IReportsByBusinessPushS
     @Autowired
     ReportsAdPushMapper reportsPushMapper;
 
-    private static final String TEMPLATE_VERSION = "1.0.7";
+    private static final String TEMPLATE_VERSION = "1.0.8";
     private static final String TEMPLATE_ID = "AAq4oeDXECopo";
 
 
@@ -75,10 +75,10 @@ public class ReportsByBusinessPushServiceImpl implements IReportsByBusinessPushS
     public void test(){
         sendParam("", Arrays.asList(
                 "44fbaed6"
-                ,"ebeeced9" //yumeng
-                ,"58e7a98a"  //xsq
-                ,"2ga9669f" //angaoqi
-                ,"43gb7fbc" //huangpingkang
+//                ,"ebeeced9" //yumeng
+//                ,"58e7a98a"  //xsq
+//                ,"2ga9669f" //angaoqi
+//                ,"43gb7fbc" //huangpingkang
                 )
                 , Collections.EMPTY_LIST);
     }
@@ -176,6 +176,7 @@ public class ReportsByBusinessPushServiceImpl implements IReportsByBusinessPushS
             obj.put("movieProjectSource", ms);
             obj.put("rank", String.valueOf(movie.get("rk")));
             obj.put("movieName", movieName);
+            obj.put("waterEndAmount", String.valueOf(movie.get("water_end_amount")));
             obj.put("endAmount", String.valueOf(movie.get("end_amount")));
             movieRankTable.add(obj);
         }