Commit fc45062e by 程裕兵

feat:global config

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