feat:(REQ-2186) 修改path的解析
This commit is contained in:
parent
eadc8d9f9f
commit
72c7de722e
@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@ -137,7 +138,7 @@ public class SaasFeatureResource extends BaseEntity<SaasFeature> {
|
||||
if (StrUtil.isBlank(this.path)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return StrUtil.split(this.path, ",").stream().map(Long::valueOf).collect(Collectors.toList());
|
||||
return StrUtil.split(this.path, ",").stream().filter(StringUtils::isNotBlank).map(Long::valueOf).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user