We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
功能: 把查到的数据,根据getValue()过滤,筛选出getValue()为null的值,然后以 getId(),组装成List
List<MaterialAttribute> findByPid = this.list(new MaterialAttribute().setParentId(oneById.getId()).queryWrapper()); List<MaterialAttribute> filterList = new ArrayList(); List<Long> idList = new ArrayList(); findByPid.forEach(x->{ if(StringUtils.isEmpty(x.getValue())){ filterList.add(x); } }); filterList.forEach(x->{ idList.add(x.getId()); }); // return idList; //---------------------------------------------------------------------------------------------------------------------------------------- List<Long> collect = ((List<MaterialAttribute>) this.list(new MaterialAttribute().setParentId(oneById.getId()).queryWrapper())).stream() .filter(x -> StringUtil.isEmpty(x.getValue())).collect(Collectors.toList()).stream().map(MaterialAttribute::getId).collect(Collectors.toList()); // return collect;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
功能:
把查到的数据,根据getValue()过滤,筛选出getValue()为null的值,然后以 getId(),组装成List
The text was updated successfully, but these errors were encountered: