Commit 469b44af by 徐康

deliveryTotal amount

parent 0e21508a
......@@ -143,7 +143,7 @@ public class DeliveryAdapter {
deliveryOrderRequestDto.setDisplayOrderId(displayOrderId);
deliveryOrderRequestDto.setTaxFlag(1);
if (CollectionUtils.isNotEmpty(order.getAccountList())) {
List<QueryOrdersResponseDto.DataBean.OrderBean.AccountBean> collect = order.getAccountList().stream().filter(type -> type != null && type.equals(OldOrderAccountType.DELIVERY_AMOUNT.getCode())).collect(Collectors.toList());
List<QueryOrdersResponseDto.DataBean.OrderBean.AccountBean> collect = order.getAccountList().stream().filter(account -> account != null && OldOrderAccountType.DELIVERY_AMOUNT.getCode().equals(account.getType())).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(collect)) {
//配送费
deliveryOrderRequestDto.setDeliveryTotal(collect.get(0).getPrice().intValue());
......
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