Explorar el Código

修复确认提现接口商户录入商户号后还是提示商户号不存在问题

codingliang hace 1 año
padre
commit
49e5ef0b4b

+ 3 - 3
src/main/java/com/sqx/modules/pay/service/impl/CashOutServiceImpl.java

@@ -660,13 +660,13 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
 
         String mchId;
         if (cashOutType == 2) {
-            RiderBankCardInfo riderBankCardInfo = riderBankCardInfoService.getByUserId(userEntity.getUserId());
-            mchId = riderBankCardInfo.getMchId();
-        } else if (cashOutType == 3) {
             // 店铺商户号
             Long adminUserId = userEntity.getAdminUserId();
             GoodsShop goodsShop = goodsShopService.getByAdminUserId(adminUserId);
             mchId = goodsShop.getMchId();
+        } else if (cashOutType == 3) {
+            RiderBankCardInfo riderBankCardInfo = riderBankCardInfoService.getByUserId(userEntity.getUserId());
+            mchId = riderBankCardInfo.getMchId();
         } else {
             throw new SqxException("暂不支持用户类型提现");
         }