|
@@ -211,7 +211,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
BigDecimal yesterdayCost = yesterdayJson.getBigDecimal("cost");// 昨日消耗
|
|
|
BigDecimal compareBigDecimal = new BigDecimal(0);
|
|
|
if (yesterdayCost.compareTo(compareBigDecimal) != 0) {
|
|
|
- BigDecimal costProportion = (cost.subtract(yesterdayCost)).divide(yesterdayCost);
|
|
|
+ BigDecimal costProportion = (cost.subtract(yesterdayCost)).divide(yesterdayCost, BigDecimal.ROUND_HALF_UP, 2);
|
|
|
accountJson.put("costProportion", costProportion); // 较昨日增加比例
|
|
|
} else {
|
|
|
accountJson.put("costProportion", 0); // 较昨日增加比例
|
|
@@ -535,7 +535,6 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
|
|
|
e.printStackTrace();
|
|
|
|
|
|
}
|
|
|
- System.err.println(detail);
|
|
|
return detail;
|
|
|
}
|
|
|
|