Commit 8dcfa103 by 张跃

预支付接口字段添加

parent 001f558c
......@@ -3154,10 +3154,7 @@ public class OrderAdapter {
orderPayDto.setPayCode(PayChannelType.TIKTOKPAY.getEbcode());
}
orderPayDto.setFoodOrderType(getFoodOrderType(orderBean.getOrderType()));
orderPayDto.setMerchantDiscount(orderBean.getOrderSettlementDetailList() == null? 0L :
Math.abs(orderBean.getOrderSettlementDetailList().stream().
filter(a -> ("0".equals(a.getProductId()) || StringUtils.isBlank(a.getProductId())) && OrderSettlementType.DISCOUNT_FEE.getIndex() != a.getSettlementType().intValue()).
mapToLong(a -> a.getShopDiscountAmount()==null?0L: a.getShopDiscountAmount()).sum()));
orderPayDto.setMerchantDiscount(Math.abs(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