Commit 8349381a by 程裕兵

feat:bind

parent 46da5b7e
package com.jiejing.fitness.finance.service.merchant.impl;
import com.google.common.collect.Lists;
import com.jiejing.common.utils.collection.CollectionUtil;
import com.jiejing.fitness.enums.finance.PartyTypeEnum;
import com.jiejing.fitness.finance.api.merchant.vo.BrandMerchantVO;
import com.jiejing.fitness.finance.repository.entity.PartyToMerchant;
......@@ -72,6 +74,9 @@ public class BrandMerchantServiceImpl implements BrandMerchantService {
public List<BrandMerchantVO> list(Long brandId) {
List<PartyToMerchant> relations = partyToMerchantRpService.listByParty(brandId, PartyTypeEnum.BRAND,
channel);
if (CollectionUtil.isEmpty(relations)) {
return Lists.newArrayList();
}
List<Long> merchantIds = relations.stream().map(PartyToMerchant::getMerchantId)
.collect(Collectors.toList());
Map<Long, StudioMerchantApply> applyMap = studioMerchantApplyRpService.mapByMerchantIds(merchantIds);
......
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