Commit ee91450a by 程裕兵

feat:list merchant

parent 71b1964d
...@@ -541,7 +541,7 @@ public class MerchantConvert { ...@@ -541,7 +541,7 @@ public class MerchantConvert {
public static List<BrandMerchantVO> convertBrandMerchantList(Long brandId, List<MerchantVO> merchants, public static List<BrandMerchantVO> convertBrandMerchantList(Long brandId, List<MerchantVO> merchants,
SubChannelInfoDTO dto, Map<Long, List<StudioVO>> studioMap, Map<Long, StudioMerchantApply> applyMap) { SubChannelInfoDTO dto, Map<Long, List<StudioVO>> studioMap, Map<Long, StudioMerchantApply> applyMap) {
return merchants.stream().map(e -> { return merchants.stream().map(e -> {
List<String> studioNames = studioMap.getOrDefault(e.getId(), new ArrayList<>()).stream() List<String> studioNames = studioMap.getOrDefault(brandId, new ArrayList<>()).stream()
.map(StudioVO::getName).collect(Collectors.toList()); .map(StudioVO::getName).collect(Collectors.toList());
return convertBrandMerchant(brandId, studioNames, e, dto, applyMap.get(e.getId())); return convertBrandMerchant(brandId, studioNames, e, dto, applyMap.get(e.getId()));
}).collect(Collectors.toList()); }).collect(Collectors.toList());
......
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