提交 c0c8d796 authored 作者: jiangwenye's avatar jiangwenye

平台账户配置

上级 48e939d0
...@@ -134,14 +134,13 @@ public class CarrierAccountController { ...@@ -134,14 +134,13 @@ public class CarrierAccountController {
PlatformAccountConfigEnum.BusinessType.WITHDRAWAL.getCode(), PlatformAccountConfigEnum.BusinessType.WITHDRAWAL.getCode(),
PlatformAccountConfigEnum.OwnerType.COMPANY.getCode(), PlatformAccountConfigEnum.OwnerType.COMPANY.getCode(),
null,null,null); null,null,null);
if(CollectionUtils.isNotEmpty(configs)){ if(CollectionUtils.isEmpty(configs)){
if(configs.size() > 1){
throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_MANY);
}
return Result.ok(configs.get(0));
}else{
throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_IS_NULL); throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_IS_NULL);
} }
if(configs.size() > 1){
throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_MANY);
}
return Result.ok(configs.get(0));
} }
} }
...@@ -626,20 +626,20 @@ public class OwnerAccountServiceImpl implements OwnerAccountService { ...@@ -626,20 +626,20 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
PlatformAccountConfigEnum.BusinessType.RECHARGE.getCode(), PlatformAccountConfigEnum.BusinessType.RECHARGE.getCode(),
PlatformAccountConfigEnum.OwnerType.COMPANY.getCode(), PlatformAccountConfigEnum.OwnerType.COMPANY.getCode(),
null,null,null); null,null,null);
if(CollectionUtils.isNotEmpty(configs)){ if(CollectionUtils.isEmpty(configs)){
if(configs.size() > 1){
throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_RECHARGE_MANY);
}
OwnerTransferInfo info = new OwnerTransferInfo();
CarrierPagePlatformAccountConfigVO vo = configs.get(0);
info.setAccountNumber(vo.getBankCardNo());
info.setOpenAccountBank(vo.getOpenBank());
info.setOpenAccountBankNumber(vo.getBankCode());
info.setEnterpriseName(vo.getCompanyName());
return info;
}else{
throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_RECHARGE_IS_NULL); throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_RECHARGE_IS_NULL);
} }
if(configs.size() > 1){
throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_RECHARGE_MANY);
}
OwnerTransferInfo info = new OwnerTransferInfo();
CarrierPagePlatformAccountConfigVO vo = configs.get(0);
info.setAccountNumber(vo.getBankCardNo());
info.setOpenAccountBank(vo.getOpenBank());
info.setOpenAccountBankNumber(vo.getBankCode());
info.setEnterpriseName(vo.getCompanyName());
return info;
//return ownerTransferInfoDao.getEntityByKey(1).orElse(null); //return ownerTransferInfoDao.getEntityByKey(1).orElse(null);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论