소스 검색

头条视频报表修改

hcst_sunzhen 5 년 전
부모
커밋
f431e93615
1개의 변경된 파일13개의 추가작업 그리고 13개의 파일을 삭제
  1. 13 13
      module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/controller/ByteDanceVideoReportDailyController.java

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

@@ -254,7 +254,7 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("cost")){
-						 ByteDanceVideoReportDaily.add(sum.getCost() );  //
+						 ByteDanceVideoReportDaily.add(sum.getCost().setScale(2,BigDecimal.ROUND_HALF_UP) );  //
 						 continue;
 					 }
 
@@ -520,7 +520,7 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("nextDayOpenCost")){
-						 ByteDanceVideoReportDaily.add(sum.getNextDayOpenCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getNextDayOpenCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
@@ -530,7 +530,7 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("validPlayCost")){
-						 ByteDanceVideoReportDaily.add(sum.getValidPlayCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getValidPlayCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
@@ -545,7 +545,7 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("activePayCost")){
-						 ByteDanceVideoReportDaily.add(sum.getActivePayCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getActivePayCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
@@ -555,7 +555,7 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("cpc")){
-						 ByteDanceVideoReportDaily.add(sum.getCpc());  //
+						 ByteDanceVideoReportDaily.add(sum.getCpc().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
@@ -585,12 +585,12 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("activeCost")){
-						 ByteDanceVideoReportDaily.add(sum.getActiveCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getActiveCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
 					 if( column.equals("gameAddictionCost")){
-						 ByteDanceVideoReportDaily.add(sum.getGameAddictionCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getGameAddictionCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
@@ -615,12 +615,12 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("downloadFinishCost")){
-						 ByteDanceVideoReportDaily.add(sum.getDownloadFinishCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getDownloadFinishCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
 					 if( column.equals("activeRegisterCost")){
-						 ByteDanceVideoReportDaily.add(sum.getActiveRegisterCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getActiveRegisterCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
@@ -656,7 +656,7 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("downloadStartCost")){
-						 ByteDanceVideoReportDaily.add(sum.getDownloadStartCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getDownloadStartCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
@@ -671,17 +671,17 @@ public class ByteDanceVideoReportDailyController {
 					 }
 
 					 if( column.equals("averagePlayTimePerPlay")){
-						 ByteDanceVideoReportDaily.add(sum.getAveragePlayTimePerPlay());  //
+						 ByteDanceVideoReportDaily.add(sum.getAveragePlayTimePerPlay().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
 					 if( column.equals("convertCost")){
-						 ByteDanceVideoReportDaily.add(sum.getConvertCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getConvertCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }
 
 					 if( column.equals("installFinishCost")){
-						 ByteDanceVideoReportDaily.add(sum.getInstallFinishCost());  //
+						 ByteDanceVideoReportDaily.add(sum.getInstallFinishCost().setScale(2,BigDecimal.ROUND_HALF_UP));  //
 						 continue;
 					 }