行政区划树不返回港澳台及海外数据
parent
5d42aea349
commit
3a947f8f54
|
|
@ -203,7 +203,12 @@ public class ExpressServiceImpl implements IExpressService {
|
||||||
List<ExpressRegionTreeNodeDTO> treeNodeList = redisCache.getCacheList(Constants.EXPRESS_REGION_TREE_CACHE_KEY);
|
List<ExpressRegionTreeNodeDTO> treeNodeList = redisCache.getCacheList(Constants.EXPRESS_REGION_TREE_CACHE_KEY);
|
||||||
if (CollUtil.isEmpty(treeNodeList)) {
|
if (CollUtil.isEmpty(treeNodeList)) {
|
||||||
List<ExpressRegionDTO> dtoList = getRegionListCache().stream()
|
List<ExpressRegionDTO> dtoList = getRegionListCache().stream()
|
||||||
.filter(o -> Constants.UNDELETED.equals(o.getDelFlag()))
|
.filter(o -> Constants.UNDELETED.equals(o.getDelFlag())
|
||||||
|
//排除港澳台及海外
|
||||||
|
&& !StrUtil.startWith(o.getRegionCode(), "71")
|
||||||
|
&& !StrUtil.startWith(o.getRegionCode(), "81")
|
||||||
|
&& !StrUtil.startWith(o.getRegionCode(), "82")
|
||||||
|
&& !StrUtil.startWith(o.getRegionCode(), "99"))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
List<ExpressRegionTreeNodeDTO> list = BeanUtil.copyToList(dtoList, ExpressRegionTreeNodeDTO.class);
|
List<ExpressRegionTreeNodeDTO> list = BeanUtil.copyToList(dtoList, ExpressRegionTreeNodeDTO.class);
|
||||||
treeNodeList = CollUtil.newArrayList();
|
treeNodeList = CollUtil.newArrayList();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue