Commit 7565bd87 authored by libin's avatar libin

累计金额

parent 238d8c9a
...@@ -156,8 +156,9 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O ...@@ -156,8 +156,9 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O
//2.支付终端统计 //2.支付终端统计
wrapToPayProfileWithPayTerminal(baseOrders, orderAmountConstant, largeScreenDisplayConstantDataBo, orderPayProfileDispalyVo); wrapToPayProfileWithPayTerminal(baseOrders, orderAmountConstant, largeScreenDisplayConstantDataBo, orderPayProfileDispalyVo);
BigDecimal realOrderAmount = baseOrders.stream().map(BaseOrderDTO::getRealAmount).reduce(BigDecimal.ZERO, BigDecimal::add);
//累计订单金额 //累计订单金额
orderProfileDispayVo.setOrderAmount(orderAmountConstant); orderProfileDispayVo.setOrderAmount(orderAmountConstant.add(realOrderAmount));
orderProfileDispayVo.setOrderPayProfileDisplay(orderPayProfileDispalyVo); orderProfileDispayVo.setOrderPayProfileDisplay(orderPayProfileDispalyVo);
return orderProfileDispayVo; return orderProfileDispayVo;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment