Procházet zdrojové kódy

fix原生支付流程调整

Eric před 1 rokem
rodič
revize
bf9e484f9f

+ 6 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/UserPaymentOrderService.java

@@ -49,6 +49,12 @@ public interface UserPaymentOrderService   {
     void updateById(UserPaymentOrderWrapper.UserPaymentOrder order);
 
     /**
+     * 更新订单支付三方
+     * @param order UserPaymentOrderWrapper.UserPaymentOrder
+     */
+    void updatePaymentVendorById(UserPaymentOrderWrapper.UserPaymentOrder order);
+
+    /**
      * 创建订单
      *
      */

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/UserPaymentCoreServiceImpl.java

@@ -753,7 +753,7 @@ public class UserPaymentCoreServiceImpl implements UserPaymentCoreService {
                 .id(userPaymentOrder.getId())
                 .paymentVendor(reqConfig.getPaymentVendor())
                 .build();
-            userPaymentOrderService.updateById(update);
+            userPaymentOrderService.updatePaymentVendorById(update);
 
             // 重置支付三方渠道
             userPaymentOrder.setPaymentVendor(reqConfig.getPaymentVendor());

+ 17 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/UserPaymentOrderServiceImpl.java

@@ -213,6 +213,23 @@ public class UserPaymentOrderServiceImpl  implements UserPaymentOrderService {
     }
 
     /**
+     * 更新订单支付三方
+     *
+     * @param order UserPaymentOrderWrapper.UserPaymentOrder
+     */
+    @Override
+    public void updatePaymentVendorById(UserPaymentOrderWrapper.UserPaymentOrder order) {
+
+        if (order == null) {
+            return;
+        }
+
+        // 更新订单
+        UserOrder userOrder = order.toUserOrder();
+        userOrderService.updateById(userOrder);
+    }
+
+    /**
      * 创建订单
      *
      * @param orderReq