|
@@ -123,7 +123,7 @@ public class SysEnterpriseAreaServiceImpl extends ServiceImpl<SysEnterpriseAreaM
|
|
@Override
|
|
@Override
|
|
public List<Long> listAreaEnts(List<Long> areas) {
|
|
public List<Long> listAreaEnts(List<Long> areas) {
|
|
Set<Long> collect = areas.stream().collect(Collectors.toSet());
|
|
Set<Long> collect = areas.stream().collect(Collectors.toSet());
|
|
- return this.list(Wrappers.<SysEnterpriseArea>lambdaQuery().in(SysEnterpriseArea::getAreaId, collect)).stream().map(SysEnterpriseArea::getEntId).collect(Collectors.toList());
|
|
|
|
|
|
+ return this.list(Wrappers.<SysEnterpriseArea>lambdaQuery().in(SysEnterpriseArea::getAreaId, collect)).stream().map(SysEnterpriseArea::getEntId).distinct().collect(Collectors.toList());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|