|
|
|
@@ -192,11 +192,13 @@ public class CockpitScreenServiceImpl implements CockpitScreenService { |
|
|
|
}); |
|
|
|
|
|
|
|
CountOrderTrendVO.OrderInfo orderInfo = new CountOrderTrendVO.OrderInfo(); |
|
|
|
orderInfo.setAmount(tradeOrder.stream().map(MonthOrderMapping::getAmount).reduce(BigDecimal::add).orElse(BigDecimal.ZERO)); |
|
|
|
BigDecimal orderAmount = tradeOrder.stream().map(MonthOrderMapping::getAmount).reduce(BigDecimal::add).orElse(BigDecimal.ZERO); |
|
|
|
orderInfo.setAmount(orderAmount.divide(BigDecimal.valueOf(100))); |
|
|
|
orderInfo.setCount(tradeOrder.stream().map(MonthOrderMapping::getCount).reduce(Integer::sum).orElse(0)); |
|
|
|
|
|
|
|
CountOrderTrendVO.VerifiedOrderInfo verifiedOrderInfo = new CountOrderTrendVO.VerifiedOrderInfo(); |
|
|
|
verifiedOrderInfo.setAmount(verifiedOrder.stream().map(MonthOrderMapping::getAmount).reduce(BigDecimal::add).orElse(BigDecimal.ZERO)); |
|
|
|
BigDecimal verifiedOrderAmount = verifiedOrder.stream().map(MonthOrderMapping::getAmount).reduce(BigDecimal::add).orElse(BigDecimal.ZERO); |
|
|
|
verifiedOrderInfo.setAmount(verifiedOrderAmount.divide(BigDecimal.valueOf(100))); |
|
|
|
verifiedOrderInfo.setCount(verifiedOrder.stream().map(MonthOrderMapping::getCount).reduce(Integer::sum).orElse(0)); |
|
|
|
verifiedOrderInfo.setUserCount(verifiedOrder.stream().map(MonthOrderMapping::getUserCount).reduce(Integer::sum).orElse(0)); |
|
|
|
|
|
|
|
@@ -236,8 +238,8 @@ public class CockpitScreenServiceImpl implements CockpitScreenService { |
|
|
|
Integer carUserCount = wxCUserCarMapper.countCarUser(tenantIds); |
|
|
|
|
|
|
|
CountBasicVO vo = new CountBasicVO(); |
|
|
|
vo.setTotalTradingAmount(totalTradingAmount); |
|
|
|
vo.setTotalVerifiedAmount(totalVerifiedAmount); |
|
|
|
vo.setTotalTradingAmount(totalTradingAmount.divide(BigDecimal.valueOf(100))); |
|
|
|
vo.setTotalVerifiedAmount(totalVerifiedAmount.divide(BigDecimal.valueOf(100))); |
|
|
|
vo.setTotalMerchantCount(totalMerchantCount); |
|
|
|
vo.setTotalUserCount(totalUserCount); |
|
|
|
vo.setTotalReachUserCount(sumVisit.getUv()); |
|
|
|
@@ -246,7 +248,7 @@ public class CockpitScreenServiceImpl implements CockpitScreenService { |
|
|
|
|
|
|
|
vo.setTodayPvCount(todaySumVisit.getPv()); |
|
|
|
vo.setTodayUserCount(todayUserCount); |
|
|
|
vo.setTodayTradingAmount(todayTradingAmount); |
|
|
|
vo.setTodayTradingAmount(todayTradingAmount.divide(BigDecimal.valueOf(100))); |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|
|