|
|
@@ -290,22 +290,26 @@ public class ExpertUserInfoAssembler { |
|
|
|
} |
|
|
|
|
|
|
|
for (ExpertMetaApply expertMetaApply : expertMetaApplyList) { |
|
|
|
String applyType = expertMetaApply.getApplyType(); |
|
|
|
RegionDtoMapKey regionDtoMapKey = new RegionDtoMapKey(); |
|
|
|
regionDtoMapKey.setRegionCode(expertMetaApply.getRegionCode()); |
|
|
|
regionDtoMapKey.setRegionLevel(expertMetaApply.getRegionLevel()); |
|
|
|
ExpertApplyTypeEnum typeEnum = ExpertApplyTypeEnum.of(applyType); |
|
|
|
switch (typeEnum) { |
|
|
|
case EXPERT_INTENTION_LEAVE: { |
|
|
|
set.remove(regionDtoMapKey); |
|
|
|
} |
|
|
|
break; |
|
|
|
case EXPERT_INTENTION_JOIN: { |
|
|
|
set.add(regionDtoMapKey); |
|
|
|
} |
|
|
|
break; |
|
|
|
default: |
|
|
|
String regionCode = expertMetaApply.getRegionCode(); |
|
|
|
Integer regionLevel = expertMetaApply.getRegionLevel(); |
|
|
|
if (Objects.nonNull(regionLevel) && StringUtils.isNotBlank(regionCode)) { |
|
|
|
String applyType = expertMetaApply.getApplyType(); |
|
|
|
RegionDtoMapKey regionDtoMapKey = new RegionDtoMapKey(); |
|
|
|
regionDtoMapKey.setRegionCode(regionCode); |
|
|
|
regionDtoMapKey.setRegionLevel(regionLevel); |
|
|
|
ExpertApplyTypeEnum typeEnum = ExpertApplyTypeEnum.of(applyType); |
|
|
|
switch (typeEnum) { |
|
|
|
case EXPERT_INTENTION_LEAVE: { |
|
|
|
set.remove(regionDtoMapKey); |
|
|
|
} |
|
|
|
break; |
|
|
|
case EXPERT_INTENTION_JOIN: { |
|
|
|
set.add(regionDtoMapKey); |
|
|
|
} |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return set.stream().map(r -> { |
|
|
|