草泥马
This commit is contained in:
parent
7ca30e38c2
commit
2ca1096ecc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue