Commit 1c199194 by ping.wu

去除外卖配送费

parent 46e78ba8
......@@ -3155,7 +3155,8 @@ public class OrderAdapter {
}
orderPayDto.setFoodOrderType(getFoodOrderType(orderBean.getOrderType()));
orderPayDto.setMerchantDiscount(orderBean.getAccountList() == null ?
0L:orderBean.getAccountList().stream().mapToLong(account->account.getShopDiscountAmount()==null?0L:account.getShopDiscountAmount()).sum());
0L:orderBean.getAccountList().stream().filter(a->a.getType()==null && a.getType() != 1)
.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