Commit d3e814c6 by 胡敬轩

多储值卡支付

parent d60dd9ff
...@@ -2545,6 +2545,7 @@ public class OrderServiceImpl implements Orderservice { ...@@ -2545,6 +2545,7 @@ public class OrderServiceImpl implements Orderservice {
private void preSetPayChannelType(BaseCreateOrderRequest request, CreateOrderVo createOrderVo) { private void preSetPayChannelType(BaseCreateOrderRequest request, CreateOrderVo createOrderVo) {
Long amount = request.getAmount(); Long amount = request.getAmount();
String cardCode = createOrderVo.getCardCode(); String cardCode = createOrderVo.getCardCode();
List<String> cardCodes = createOrderVo.getCardCodes();
CreateOrderUnionPayCardVo unionPayCard = createOrderVo.getUnionPayCard(); CreateOrderUnionPayCardVo unionPayCard = createOrderVo.getUnionPayCard();
if (amount > 0) { if (amount > 0) {
PayChannelType channelType = null; PayChannelType channelType = null;
...@@ -2552,7 +2553,7 @@ public class OrderServiceImpl implements Orderservice { ...@@ -2552,7 +2553,7 @@ public class OrderServiceImpl implements Orderservice {
if (Objects.nonNull(unionPayCard)) { if (Objects.nonNull(unionPayCard)) {
channelType = PayChannelType.USVCP; channelType = PayChannelType.USVCP;
this.setPrePayChannel(request, channelType); this.setPrePayChannel(request, channelType);
} else if (StringUtils.isNotBlank(cardCode)) { } else if (StringUtils.isNotBlank(cardCode) || CollectionUtils.isNotEmpty(cardCodes)) {
// 储值卡支付 // 储值卡支付
channelType = PayChannelType.SVC; channelType = PayChannelType.SVC;
this.setPrePayChannel(request, channelType); this.setPrePayChannel(request, channelType);
......
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