Commit 68a78c7d by 张跃

预支付接口字段添加

parent f09b2ee3
......@@ -3155,7 +3155,7 @@ public class OrderAdapter {
}
orderPayDto.setFoodOrderType(getFoodOrderType(orderBean.getOrderType()));
orderPayDto.setMerchantDiscount(orderBean.getAccountList() == null ?
0L:orderBean.getAccountList().stream().mapToLong(QueryOrdersResponse.DataBean.OrderBean.AccountBean::getShopDiscountAmount).sum());
0L:orderBean.getAccountList().stream().mapToLong(account->account.getShopDiscountAmount()==null?0L:account.getShopDiscountAmount()).sum());
return orderPayDto;
}
......
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