|
@@ -328,11 +328,36 @@ public class KuaishouLiveAccountReportServiceImpl implements IKuaishouLiveAccoun
|
|
|
String type = map.get("type").toString();
|
|
|
String filedAll = JsonResourceUtil.joinAllFiled(AccountReportConstants.getKuaishouAccountReport());
|
|
|
map.put("filedAll", filedAll);
|
|
|
+ List<JSONObject> list = null;
|
|
|
if ("hourly".equals(type)) {
|
|
|
- return mapper.getAccountDataReportByHourly(map);
|
|
|
+ list = mapper.getAccountDataReportByHourly(map);
|
|
|
} else {
|
|
|
- return mapper.getAccountDataReportByDaily(map);
|
|
|
+ list = mapper.getAccountDataReportByDaily(map);
|
|
|
}
|
|
|
+ BigDecimal ten = new BigDecimal("10");
|
|
|
+ // 花费、成本、GMV以及相关字段 除以 10
|
|
|
+ list.forEach(data -> {
|
|
|
+ data.put("costTotal",data.getBigDecimal("costTotal").divide(ten));
|
|
|
+ data.put("adShow1kCost",data.getBigDecimal("adShow1kCost").divide(ten));
|
|
|
+ data.put("actionbarClickCost",data.getBigDecimal("actionbarClickCost").divide(ten));
|
|
|
+ data.put("conversionCostEsp",data.getBigDecimal("conversionCostEsp").divide(ten));
|
|
|
+ data.put("gmv",data.getBigDecimal("gmv").divide(ten));
|
|
|
+ data.put("t0Gmv",data.getBigDecimal("t0Gmv").divide(ten));
|
|
|
+ data.put("t1Gmv",data.getBigDecimal("t1Gmv").divide(ten));
|
|
|
+ data.put("t7Gmv",data.getBigDecimal("t7Gmv").divide(ten));
|
|
|
+ data.put("t15Gmv",data.getBigDecimal("t15Gmv").divide(ten));
|
|
|
+ data.put("t30Gmv",data.getBigDecimal("t30Gmv").divide(ten));
|
|
|
+ data.put("t0OrderCntCost",data.getBigDecimal("t0OrderCntCost").divide(ten));
|
|
|
+ data.put("reservationCost",data.getBigDecimal("reservationCost").divide(ten));
|
|
|
+ data.put("liveAudienceCost",data.getBigDecimal("liveAudienceCost").divide(ten));
|
|
|
+ data.put("fansT0Gmv",data.getBigDecimal("fansT0Gmv").divide(ten));
|
|
|
+ data.put("fansT1Gmv",data.getBigDecimal("fansT1Gmv").divide(ten));
|
|
|
+ data.put("fansT7Gmv",data.getBigDecimal("fansT7Gmv").divide(ten));
|
|
|
+ data.put("fansT15Gmv",data.getBigDecimal("fansT15Gmv").divide(ten));
|
|
|
+ data.put("fansT30Gmv",data.getBigDecimal("fansT30Gmv").divide(ten));
|
|
|
+ data.put("fansT1Gmv",data.getBigDecimal("fansT1Gmv").divide(ten));
|
|
|
+ });
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
@Override
|