From bb0594739431d702e1ee999c23567d281c83c3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E9=B9=8F=E8=BE=89?= <18322780655@163.com> Date: Tue, 26 Sep 2023 14:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=9A=E9=81=93=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/pluss/platform/dto/AccountDTO.java | 10 ++++++++++ .../impl/account/AccountServiceImpl.java | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/pluss-model-bundle/src/main/java/cn/pluss/platform/dto/AccountDTO.java b/pluss-model-bundle/src/main/java/cn/pluss/platform/dto/AccountDTO.java index 08763ff..80c7340 100644 --- a/pluss-model-bundle/src/main/java/cn/pluss/platform/dto/AccountDTO.java +++ b/pluss-model-bundle/src/main/java/cn/pluss/platform/dto/AccountDTO.java @@ -51,6 +51,8 @@ public class AccountDTO extends Account { private String photoUrl; private String picUrl; @TableField(exist = false) + private String channalName; + @TableField(exist = false) private String picUrl1; @TableField(exist = false) private String picUrl2; @@ -129,6 +131,14 @@ public class AccountDTO extends Account { this.picUrl = picUrl; } + public String getChannalName() { + return channalName; + } + + public void setChannalName(String channalName) { + this.channalName = channalName; + } + public String getPicUrl1() { return picUrl1; } diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/merchant/impl/account/AccountServiceImpl.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/merchant/impl/account/AccountServiceImpl.java index 8fb703c..e0c4826 100644 --- a/pluss-service-bundle/src/main/java/cn/pluss/platform/merchant/impl/account/AccountServiceImpl.java +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/merchant/impl/account/AccountServiceImpl.java @@ -2,6 +2,7 @@ package cn.pluss.platform.merchant.impl.account; import cn.hutool.core.date.DateUtil; import cn.hutool.core.util.DesensitizedUtil; +import cn.hutool.core.util.ObjectUtil; import cn.pluss.platform.BankCardService; import cn.pluss.platform.IdCardService; import cn.pluss.platform.channel.MerchantAuditService; @@ -135,6 +136,18 @@ public class AccountServiceImpl extends ServiceImpl impl @Lazy private LaKalaInterfaceImpl laKalaInterface; + + private static LinkedHashMap channalName=new LinkedHashMap<>(); + + static { + channalName.put(1,"随行付"); + channalName.put(2,"乐刷"); + channalName.put(3,"瑞银信"); + channalName.put(4,"银盛"); + channalName.put(5,"拉卡拉"); + channalName.put(6,"银盛D1"); + } + @Override public void editSuccess(MerchantChannelStatus mcs, String accountType) { transactionTemplate.execute(new TransactionCallbackWithoutResult() { @@ -1058,6 +1071,10 @@ public class AccountServiceImpl extends ServiceImpl impl account.setBak(null); } + if(ObjectUtil.isNotEmpty(mcs)&&ObjectUtil.isNotEmpty(mcs.getChannel())){ + accountDTO.setChannalName(channalName.get(mcs.getChannel())); + } + return accountDTO; }