|
|
@@ -472,12 +472,8 @@ public class AssetService {
|
|
|
});
|
|
|
|
|
|
List<UserHistory> content = map.getContent();
|
|
|
- for (int i = 0; i < content.size(); i++) {
|
|
|
- UserHistory userHistory = content.get(i);
|
|
|
- System.out.println("这是第"+i+"次循环: "+userHistory);
|
|
|
- }
|
|
|
if (content!=null&&content.size()>0){
|
|
|
- content.removeAll(Collections.singleton(null));
|
|
|
+ content.removeIf(Objects::isNull);
|
|
|
Pageable pageable = PageRequest.of(pageQuery.getPage() - 1, pageQuery.getSize());
|
|
|
map = PageUtil.createPageFromList(content, pageable);
|
|
|
}
|