return null

This commit is contained in:
wangxiaopeng
2024-06-04 19:44:59 +08:00
parent d63f895c25
commit 4f93a1f061

View File

@@ -53,7 +53,7 @@ public class RegionServiceImpl implements RegionService {
public RegionPathNameVO getAllRegionName(Long regionId) {
RegionDO regionDO = regionMapper.getByRegionId(regionId);
if(regionDO == null){
throw new ServiceException(ErrorCodeEnum.REGION_NOT_EXIST);
return null;
}
if(regionDO.getDeleted() || StringUtils.isBlank(regionDO.getRegionPath()) || CommonConstants.LONG_ONE.equals(regionDO.getId())){