mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-11 09:38:05 +08:00
update 运营端小程序 查询订单数量趋势信息接口
This commit is contained in:
@@ -1125,6 +1125,8 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
|
|||||||
if (yesterdayOrderNum.compareTo(BigDecimal.ZERO) != 0) {
|
if (yesterdayOrderNum.compareTo(BigDecimal.ZERO) != 0) {
|
||||||
BigDecimal orderNumRate = todayOrderNum.subtract(yesterdayOrderNum).divide(yesterdayOrderNum, 2, BigDecimal.ROUND_HALF_UP);
|
BigDecimal orderNumRate = todayOrderNum.subtract(yesterdayOrderNum).divide(yesterdayOrderNum, 2, BigDecimal.ROUND_HALF_UP);
|
||||||
orderNumRateGrowthRate = orderNumRate.multiply(new BigDecimal("100")) + "%";
|
orderNumRateGrowthRate = orderNumRate.multiply(new BigDecimal("100")) + "%";
|
||||||
|
}else {
|
||||||
|
orderNumRateGrowthRate = todayOrderNum.multiply(new BigDecimal("100")) + "%";
|
||||||
}
|
}
|
||||||
vo.setOrderAmountGrowthRate(orderNumRateGrowthRate);
|
vo.setOrderAmountGrowthRate(orderNumRateGrowthRate);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user