소스 검색

添加订单支持组合商品

周箭河 5 년 전
부모
커밋
40fe749d0b
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/PayServiceImpl.java

+ 4 - 4
mec-biz/src/main/java/com/ym/mec/biz/service/impl/PayServiceImpl.java

@@ -293,11 +293,11 @@ public class PayServiceImpl implements PayService {
         BigDecimal hasRouteMoney = BigDecimal.ZERO;
         List<Map<String, Object>> tempRoutingList = new ArrayList<>();
 
-        PaymentChannelEnum patType = null;
+        PaymentChannelEnum payType = null;
         boolean feeFlag = false;
         Set<String> routingMerNoSet = new HashSet<>();
         for (RouteScaleDto routeScaleDto : routeScaleDtos) {
-            patType = routeScaleDto.getPayType();
+            payType = routeScaleDto.getPayType();
             Map<String, Object> routingList = new HashMap<>();
             i++;
 
@@ -347,7 +347,7 @@ public class PayServiceImpl implements PayService {
             throw new BizException("调用支付接口失败");
         }
 
-        if (patType.equals(PaymentChannelEnum.YQPAY)) {
+        if (payType.equals(PaymentChannelEnum.YQPAY)) {
             if (tempRoutingList.size() == 1 && YqPayUtil.merNo.equals(tempRoutingList.get(0).get("routingMerNo").toString())) {
                 tempRoutingList = null;
             }
@@ -358,7 +358,7 @@ public class PayServiceImpl implements PayService {
         String routingMerNos = String.join(",", routingMerNoSet);
 
         unionPay.put("orderNo", orderNo);
-        unionPay.put("type", patType.getCode());
+        unionPay.put("type", payType.getCode());
         unionPay.put("payMap", payMap);
         unionPay.put("routingMerNos", routingMerNos);
         return unionPay;