|
@@ -166,7 +166,7 @@ public class KuaishouLiveAccountReportServiceImpl implements IKuaishouLiveAccoun
|
|
|
if (Check.isNotNull(yesCostTotal) && new BigDecimal(yesCostTotal).compareTo(new BigDecimal("0")) > 0) {
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("0.00%");
|
|
|
Double yearOnYearD = (costTotal - yesCostTotal) / yesCostTotal;
|
|
|
- all.put("roi", new BigDecimal(yearOnYearD).setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue());
|
|
|
+ all.put("roi", new BigDecimal(yearOnYearD).multiply(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue());
|
|
|
} else {
|
|
|
all.put("roi", "0.0");
|
|
|
}
|