REQ-3540: 备份
This commit is contained in:
parent
3cd2ab97fb
commit
03a24f5f28
@ -1,7 +1,8 @@
|
||||
|
||||
package cn.axzo.nanopart.doc.entity;
|
||||
|
||||
import cn.axzo.nanopart.doc.api.domain.FileAttributes;
|
||||
import java.util.Objects;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
@ -10,6 +11,7 @@ import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import cn.axzo.maokai.api.vo.response.tree.NodeValue;
|
||||
import cn.axzo.nanopart.doc.api.domain.FileAttributes;
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeAttributes;
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeParentScope;
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeScope;
|
||||
@ -22,8 +24,6 @@ import cn.axzo.pokonyan.config.mybatisplus.BaseEntity;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@ -118,12 +118,6 @@ public class IndexNode extends BaseEntity<IndexNode> implements NodeValue, Index
|
||||
@TableField(typeHandler = FastjsonTypeHandler.class)
|
||||
private IndexNodeAttributes attributes;
|
||||
|
||||
public void scoped(IndexNodeScope nodeScope) {
|
||||
this.context = nodeScope.context();
|
||||
this.scope = nodeScope.scope();
|
||||
this.scopeCode = nodeScope.scopeCode();
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@JSONField(serialize = false, deserialize = false)
|
||||
public IndexNodeAttributes getOrCreateAttributes() {
|
||||
|
||||
@ -62,7 +62,7 @@ class IndexSupport {
|
||||
child.setName(create.name());
|
||||
child.setBizCode(create.bizCode());
|
||||
child.setContext(create.nodeScope().context());
|
||||
child.scoped(create.nodeScope().scope());
|
||||
child.setScope(create.nodeScope().scope());
|
||||
child.setDescription(create.description());
|
||||
child.setIcon(create.icon());
|
||||
child.setState(IndexNodeState.VALID);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user