BUGFIX: 隐藏加载不出minio的相关数据;
This commit is contained in:
@@ -51,6 +51,7 @@ import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -202,6 +203,7 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
||||
}
|
||||
}
|
||||
Map<Long, LibraryModelPointVO> finalMap = map;
|
||||
AtomicInteger i = new AtomicInteger();
|
||||
IPage<QueryLibraryPageVO> convert = page.convert((Function<Library, QueryLibraryPageVO>) library -> {
|
||||
QueryLibraryPageVO libraryPageVO = CopyUtil.copyObject(library, QueryLibraryPageVO.class);
|
||||
libraryPageVO.setDesignType(DesignTypeEnum.LIBRARY.getRealName());
|
||||
@@ -228,9 +230,25 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
||||
}
|
||||
return libraryPageVO;
|
||||
}else {
|
||||
i.getAndIncrement();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}).getRecords().stream()
|
||||
.filter(Objects::nonNull)
|
||||
.collect(Collectors.collectingAndThen(
|
||||
Collectors.toList(),
|
||||
list -> new Page<QueryLibraryPageVO>(page.getCurrent(), page.getSize(), page.getTotal()) {
|
||||
@Override
|
||||
public List<QueryLibraryPageVO> getRecords() {
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getTotal() {
|
||||
return list.size();
|
||||
}
|
||||
}
|
||||
));
|
||||
return PageBaseResponse.success(convert);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user