Commit fc45062e by 程裕兵

feat:global config

parent d72b2281
...@@ -420,8 +420,10 @@ public class MerchantConvert { ...@@ -420,8 +420,10 @@ public class MerchantConvert {
return ResourceInfo.builder().resourceId(id).type(type).build(); return ResourceInfo.builder().resourceId(id).type(type).build();
} }
public static BrandMerchantVO convertBrandMerchant(BrandToMerchant relation, MerchantVO merchant) { public static BrandMerchantVO convertBrandMerchant(BrandToMerchant relation, MerchantVO merchant,
Map<SubChannelOpenTypeEnums, SubChannelInfo> channelMap = convertSubChannelMap(merchant.getSubChannels()); List<SubChannelInfo> defaultSubChannels) {
Map<SubChannelOpenTypeEnums, SubChannelInfo> channelMap = convertSubChannelMap(merchant.getSubChannels(),
defaultSubChannels);
SubChannelInfo ali = channelMap.get(SubChannelOpenTypeEnums.ALI_OFFLINE); SubChannelInfo ali = channelMap.get(SubChannelOpenTypeEnums.ALI_OFFLINE);
SubChannelInfo wxGzhOffline = channelMap.get(SubChannelOpenTypeEnums.WX_GZH_OFFLINE); SubChannelInfo wxGzhOffline = channelMap.get(SubChannelOpenTypeEnums.WX_GZH_OFFLINE);
OpenStateEnums wxOfflineState = convertWxOfflineState(channelMap); OpenStateEnums wxOfflineState = convertWxOfflineState(channelMap);
......
...@@ -128,7 +128,8 @@ public class BrandMerchantServiceImpl implements BrandMerchantService { ...@@ -128,7 +128,8 @@ public class BrandMerchantServiceImpl implements BrandMerchantService {
public BrandMerchantVO getMerchant(Long brandId) { public BrandMerchantVO getMerchant(Long brandId) {
BrandToMerchant relation = brandToMerchantRpService.getByBrandId(brandId); BrandToMerchant relation = brandToMerchantRpService.getByBrandId(brandId);
MerchantVO merchant = merchantRpcService.getByMerchantId(relation.getMerchantId()); MerchantVO merchant = merchantRpcService.getByMerchantId(relation.getMerchantId());
return MerchantConvert.convertBrandMerchant(relation, merchant); return MerchantConvert.convertBrandMerchant(relation, merchant,
getDefaultBrandSubChannelInfo().getSubChannels());
} }
@Override @Override
......
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