添加通道名称
This commit is contained in:
@@ -51,6 +51,8 @@ public class AccountDTO extends Account {
|
|||||||
private String photoUrl;
|
private String photoUrl;
|
||||||
private String picUrl;
|
private String picUrl;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
|
private String channalName;
|
||||||
|
@TableField(exist = false)
|
||||||
private String picUrl1;
|
private String picUrl1;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String picUrl2;
|
private String picUrl2;
|
||||||
@@ -129,6 +131,14 @@ public class AccountDTO extends Account {
|
|||||||
this.picUrl = picUrl;
|
this.picUrl = picUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getChannalName() {
|
||||||
|
return channalName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChannalName(String channalName) {
|
||||||
|
this.channalName = channalName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getPicUrl1() {
|
public String getPicUrl1() {
|
||||||
return picUrl1;
|
return picUrl1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package cn.pluss.platform.merchant.impl.account;
|
|||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.util.DesensitizedUtil;
|
import cn.hutool.core.util.DesensitizedUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.pluss.platform.BankCardService;
|
import cn.pluss.platform.BankCardService;
|
||||||
import cn.pluss.platform.IdCardService;
|
import cn.pluss.platform.IdCardService;
|
||||||
import cn.pluss.platform.channel.MerchantAuditService;
|
import cn.pluss.platform.channel.MerchantAuditService;
|
||||||
@@ -135,6 +136,18 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
@Lazy
|
@Lazy
|
||||||
private LaKalaInterfaceImpl laKalaInterface;
|
private LaKalaInterfaceImpl laKalaInterface;
|
||||||
|
|
||||||
|
|
||||||
|
private static LinkedHashMap<Integer,String> channalName=new LinkedHashMap<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
channalName.put(1,"随行付");
|
||||||
|
channalName.put(2,"乐刷");
|
||||||
|
channalName.put(3,"瑞银信");
|
||||||
|
channalName.put(4,"银盛");
|
||||||
|
channalName.put(5,"拉卡拉");
|
||||||
|
channalName.put(6,"银盛D1");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void editSuccess(MerchantChannelStatus mcs, String accountType) {
|
public void editSuccess(MerchantChannelStatus mcs, String accountType) {
|
||||||
transactionTemplate.execute(new TransactionCallbackWithoutResult() {
|
transactionTemplate.execute(new TransactionCallbackWithoutResult() {
|
||||||
@@ -1058,6 +1071,10 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
account.setBak(null);
|
account.setBak(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(ObjectUtil.isNotEmpty(mcs)&&ObjectUtil.isNotEmpty(mcs.getChannel())){
|
||||||
|
accountDTO.setChannalName(channalName.get(mcs.getChannel()));
|
||||||
|
}
|
||||||
|
|
||||||
return accountDTO;
|
return accountDTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user