Explorar o código

渠道参数问题修改

xucaiqin %!s(int64=2) %!d(string=hai) anos
pai
achega
137ace85d8

+ 1 - 1
sckw-modules/sckw-payment/src/main/java/com/sckw/payment/model/vo/req/PrePayAppend.java

@@ -20,7 +20,7 @@ import java.math.BigDecimal;
 @Setter
 public class PrePayAppend implements MoneyChange {
     /**
-     * 支付通道 huifu
+     * 支付通道 1-汇付
      */
     @NotBlank(message = "支付通道不能为空")
     private String channel;

+ 1 - 0
sckw-modules/sckw-payment/src/main/java/com/sckw/payment/model/vo/res/WalletRefundVo.java

@@ -47,6 +47,7 @@ public class WalletRefundVo {
      * 电子钱包渠道
      */
     private String channel;
+    private String channelLabel;
     /**
      * 备注
      */

+ 2 - 1
sckw-modules/sckw-payment/src/main/java/com/sckw/payment/service/WalletService.java

@@ -964,7 +964,7 @@ public class WalletService {
         if (StringUtils.isBlank(uid)) {
             throw new BusinessException("您暂未开通电子钱包");
         }
-        ChannelEnum channelEnum = ChannelEnum.getByChannel(prePay.getChannel());
+        ChannelEnum channelEnum = ChannelEnum.getByValue(prePay.getChannel());
         if (Objects.isNull(channelEnum)) {
             throw new BusinessException("支付通道不存在");
         }
@@ -1255,6 +1255,7 @@ public class WalletService {
         for (WalletRefundVo walletRefundVo : list) {
             walletRefundVo.setUidName(getFirmName(walletRefundVo.getUid()));
             walletRefundVo.setFilterName(getFirmName(walletRefundVo.getFilter()));
+            walletRefundVo.setChannelLabel(ChannelEnum.getDesc(walletRefundVo.getChannel()));
         }
         return walletRefundVoPageRes;
     }