私海数据处理

This commit is contained in:
苏竹红
2023-10-09 10:09:06 +08:00
parent 3fae8f02d2
commit 32fbac57a1

View File

@@ -11,6 +11,7 @@ import com.cool.store.exception.ServiceException;
import com.cool.store.service.EnterpriseUserService;
import com.cool.store.service.ZoneService;
import com.cool.store.vo.EnterpriseUserSingleInfoVO;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.ListUtils;
@@ -113,6 +114,8 @@ public class EnterpriseUserServiceImpl implements EnterpriseUserService {
}
//意向区域
List<String> intendList = zoneInfoList.stream().filter(o -> "intent".equals(o.getType())).flatMap(o->JSONObject.parseArray(o.getAssociatedRegionId(), String.class).stream()).collect(Collectors.toList());
result.setInvestmentUserIds(Lists.newArrayList());
result.setDevelopmentUserIds(Lists.newArrayList());
if(CollectionUtils.isNotEmpty(intendList)){
//获取负责的区域
intendList.retainAll(subRegionIds);