Sfoglia il codice sorgente

视频报表新需求:明细详情和明细excel导出增加项目名称字段

hcst_sunzhen 5 anni fa
parent
commit
d5529fb329

+ 2 - 1
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/controller/ByteDanceVideoReportDailyController.java

@@ -277,6 +277,7 @@ public class ByteDanceVideoReportDailyController {
 			 for (ByteDanceVideoReportDaily sum : list) {
 				 List<Object> ByteDanceVideoReportDaily = new ArrayList();
 				 ByteDanceVideoReportDaily.add(sum.getAdvertiserName());  //客户
+				 ByteDanceVideoReportDaily.add(sum.getProjectName());  //项目名称
 				 ByteDanceVideoReportDaily.add(sum.getVideoUrl() );  //视频链接
 				 ByteDanceVideoReportDaily.add(DateUtils.formatDate(sum.getStatDatetime()));  //时间
 				 ByteDanceVideoReportDaily.add(sum.getCost());  //消耗
@@ -285,7 +286,7 @@ public class ByteDanceVideoReportDailyController {
 			 }
 		 }
 
-		 String[] groupHeaders = {"客户","视频链接", "时间", "消耗","环比"};
+		 String[] groupHeaders = {"客户","项目名称","视频链接", "时间", "消耗","环比"};
 		 OutputStream os = response.getOutputStream();
 		 ExportExcelUtils eeu = new ExportExcelUtils();
 		 XSSFWorkbook workbook = new XSSFWorkbook();

+ 6 - 0
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/mapper/xml/ByteDanceVideoReportDailyMapper.xml

@@ -288,6 +288,8 @@
 
     <select id="videoInfoListDetail" resultType="cn.com.ctop.toutiao.modules.report.entity.ByteDanceVideoReportDaily">
                 select
+                a.project_id as projectId,
+                a.project_name as projectName,
                 a.account_id as accountId,
                 a.advertiser_id as advertiserId,
                 a.advertiser_name as advertiserName,
@@ -319,6 +321,8 @@
 
     <select id="videoInfoListDetailOperator" resultType="cn.com.ctop.toutiao.modules.report.entity.ByteDanceVideoReportDaily">
         select
+        a.project_id as projectId,
+        a.project_name as projectName,
         a.account_id as accountId,
         a.advertiser_id as advertiserId,
         a.advertiser_name as advertiserName,
@@ -347,6 +351,8 @@
 
     <select id="videoInfoListDetailDesign" resultType="cn.com.ctop.toutiao.modules.report.entity.ByteDanceVideoReportDaily">
         select
+        a.project_id as projectId,
+        a.project_name as projectName,
         a.account_id as accountId,
         a.advertiser_id as advertiserId,
         a.advertiser_name as advertiserName,