|
@@ -339,7 +339,7 @@ public class PlatBasicsServiceImpl extends ServiceImpl<PlatBasicsMapper, PlatBas
|
|
|
if (StringUtils.isNull(platBasics)) {
|
|
|
StringUtils.getMapData("注册用户数", "registerNum", 0, tempMap);
|
|
|
StringUtils.getMapData("活跃人数", "orderNum", 0, tempMap);
|
|
|
- tempMap.put("onlineRate", "0");
|
|
|
+ tempMap.put("onlineRate", 0);
|
|
|
}else{
|
|
|
StringUtils.getMapData("注册用户数", "registerNum", platBasics.getRegisterNum(), tempMap);
|
|
|
StringUtils.getMapData("活跃人数", "orderNum", platBasics.getOrderNum(), tempMap);
|
|
@@ -347,7 +347,7 @@ public class PlatBasicsServiceImpl extends ServiceImpl<PlatBasicsMapper, PlatBas
|
|
|
BigDecimal b = new BigDecimal(platBasics.getRegisterNum());
|
|
|
BigDecimal result = a.divide(b, 4, RoundingMode.HALF_UP);
|
|
|
BigDecimal percentage = result.multiply(new BigDecimal("100")).stripTrailingZeros();
|
|
|
- tempMap.put("onlineRate", percentage.toPlainString());
|
|
|
+ tempMap.put("onlineRate", percentage);
|
|
|
}
|
|
|
return tempMap;
|
|
|
}
|