Commit 9abb784f by 张跃

Merge branch 'featur/20210526-预支付字段添加'

# Conflicts:
#	order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
parents ab14f523 f323b5a1
...@@ -71,5 +71,5 @@ public class CombPayRequest { ...@@ -71,5 +71,5 @@ public class CombPayRequest {
private String request_source ="V1"; private String request_source ="V1";
private String ver ="10"; private String ver ="10";
private String storeName; private String storeName;
private Long merchantDiscount;
} }
...@@ -3155,9 +3155,8 @@ public class OrderAdapter { ...@@ -3155,9 +3155,8 @@ public class OrderAdapter {
orderPayDto.setPayCode(PayChannelType.TIKTOKPAY.getEbcode()); orderPayDto.setPayCode(PayChannelType.TIKTOKPAY.getEbcode());
} }
orderPayDto.setFoodOrderType(getFoodOrderType(orderBean.getOrderType())); orderPayDto.setFoodOrderType(getFoodOrderType(orderBean.getOrderType()));
orderPayDto.setMerchantDiscount(orderBean.getAccountList() == null ? orderPayDto.setMerchantDiscount(Math.abs(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; return orderPayDto;
} }
...@@ -4020,6 +4019,7 @@ public class OrderAdapter { ...@@ -4020,6 +4019,7 @@ public class OrderAdapter {
productVOS.add(productBean); productVOS.add(productBean);
} }
} }
orderPayDto.setMerchantDiscount(Math.abs(orderBean.getAccountList().stream().mapToLong(account->account.getShopDiscountAmount()==null?0L:account.getShopDiscountAmount()).sum()));
orderPayDto.setProducts(productVOS); orderPayDto.setProducts(productVOS);
List<PayPlatformVO> platforms = new ArrayList<>(); List<PayPlatformVO> platforms = new ArrayList<>();
PayPlatformVO payPlatformVO = new PayPlatformVO(); PayPlatformVO payPlatformVO = new PayPlatformVO();
......
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