REQ-3540: 日志
This commit is contained in:
parent
16fe9dcc52
commit
bec64f1e75
@ -3,11 +3,8 @@ package cn.axzo.nanopart.doc.file.index.domain;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import cn.axzo.basics.common.BeanMapper;
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeInfo;
|
||||
import cn.axzo.nanopart.doc.api.enums.IndexNodeType;
|
||||
import cn.axzo.nanopart.doc.entity.IndexNode;
|
||||
import lombok.AccessLevel;
|
||||
@ -32,12 +29,6 @@ public class IndexNodes {
|
||||
.collect(toList());
|
||||
}
|
||||
|
||||
public List<IndexNodeInfo> toIndexNodeInfos() {
|
||||
if (indexNodes == null)
|
||||
return Collections.emptyList();
|
||||
return BeanMapper.copyList(indexNodes, IndexNodeInfo.class);
|
||||
}
|
||||
|
||||
public IndexNode findOrNull(String code) {
|
||||
return indexNodes.stream() //
|
||||
.filter(node -> node.getCode().equals(code)) //
|
||||
|
||||
Loading…
Reference in New Issue
Block a user