Commit 2a1bc926 authored by liwenbin's avatar liwenbin

渠道资方未配置但是量子魔方已经更改错误,增加

parent 8ed49915
...@@ -40,7 +40,8 @@ public enum QGExceptionType { ...@@ -40,7 +40,8 @@ public enum QGExceptionType {
// 资方模块错误信息 // 资方模块错误信息
GET_ALL_FUNDS_INFO_ERROR(3001, "拉取所有资方信息失败, res : %s"), GET_ALL_FUNDS_INFO_ERROR(3001, "拉取所有资方信息失败, res : %s"),
NO_FUND_INFO_BEEN_HIT(3002, "未命中任何资方, bizChannel : %s, amount : %s, term : %s"), NO_FUND_INFO_BEEN_HIT(3002, "未命中任何资方, bizChannel : %s, amount : %s, term : %s"),
FUND_PRIORITY_IS_ERROR(3003, "资方优先级不符合要求, bizChannel : %s, amount : %s, term : %s"); FUND_PRIORITY_IS_ERROR(3003, "资方优先级不符合要求, bizChannel : %s, amount : %s, term : %s"),
NOT_FOUNT_CHANNEL_FUNDS_INFO(3004, "未找到渠道资方配置, 请检查; bizChannel : %s");
......
...@@ -234,6 +234,7 @@ public class AssetServiceImpl implements IAssetService{ ...@@ -234,6 +234,7 @@ public class AssetServiceImpl implements IAssetService{
termJSON.put("fundInfo", fundArray); termJSON.put("fundInfo", fundArray);
FundModuleChannelFundConfig config = fundModuleCHannelFundConfigService.findByBizChannel(assetForm.getBizChannel()); FundModuleChannelFundConfig config = fundModuleCHannelFundConfigService.findByBizChannel(assetForm.getBizChannel());
QGPreconditions.checkArgument(config != null, QGExceptionType.NOT_FOUNT_CHANNEL_FUNDS_INFO, assetForm.getBizChannel());
List<ChannelFundConfig> fundConfigList = JSONArray.parseArray(config.getFunds(), ChannelFundConfig.class); List<ChannelFundConfig> fundConfigList = JSONArray.parseArray(config.getFunds(), ChannelFundConfig.class);
A : for (ChannelFundConfig channelFundConfig : fundConfigList) { A : for (ChannelFundConfig channelFundConfig : fundConfigList) {
List<ChannelFundConfig.Limit> limits = channelFundConfig.getLimits(); List<ChannelFundConfig.Limit> limits = channelFundConfig.getLimits();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment