草泥马

This commit is contained in:
wangliwen 2022-10-13 23:07:37 +08:00
parent 7ca30e38c2
commit 2ca1096ecc
1 changed files with 1 additions and 1 deletions

View File

@ -1899,7 +1899,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
public Object selectCollectResourceList() {
List<Map> resourceCountList = baseDao.selectCollectResourceList();
Map result = new HashMap();
resourceCountList.stream().filter(it -> !it.get("type").equals("")).forEach(it -> result.put(it.get("type"), it.get("count")));
resourceCountList.stream().filter(it -> it.get("type") != null && !it.get("type").equals("")).forEach(it -> result.put(it.get("type"), it.get("count")));
return result;
}