REQ-3540: oss client
This commit is contained in:
parent
6e99e5d990
commit
e6aa70250f
@ -14,6 +14,6 @@ public class DirectoryAttributes {
|
||||
/**
|
||||
* 是否为资料库文件夹
|
||||
*/
|
||||
private boolean isTemplateDatabaseDir;
|
||||
private Boolean isTemplateDatabaseDir;
|
||||
|
||||
}
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
package cn.axzo.nanopart.doc.api.domain;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -18,7 +18,7 @@ public class IndexNodeAttributes {
|
||||
/**
|
||||
* 是否为自定义的图标
|
||||
*/
|
||||
private boolean customIcon;
|
||||
private Boolean customIcon;
|
||||
|
||||
/**
|
||||
* 数据库属性
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
package cn.axzo.nanopart.doc.entity;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
import org.apache.ibatis.type.MappedJdbcTypes;
|
||||
import org.apache.ibatis.type.MappedTypes;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
import com.baomidou.mybatisplus.extension.handlers.AbstractJsonTypeHandler;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Slf4j
|
||||
@MappedTypes({Object.class})
|
||||
@MappedJdbcTypes(JdbcType.VARCHAR)
|
||||
@RequiredArgsConstructor
|
||||
public class IgnorePropsJsonTypeHandler extends AbstractJsonTypeHandler<Object> {
|
||||
|
||||
private final Class<?> type;
|
||||
|
||||
@Override
|
||||
protected Object parse(String json) {
|
||||
if (StringUtils.isBlank(json))
|
||||
return null;
|
||||
return JSON.parseObject(json, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String toJson(Object obj) {
|
||||
return JSON.toJSONString(obj, SerializerFeature.DisableCircularReferenceDetect);
|
||||
}
|
||||
|
||||
}
|
||||
@ -7,7 +7,6 @@ import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import cn.axzo.maokai.api.vo.response.tree.NodeValue;
|
||||
@ -115,7 +114,7 @@ public class IndexNode extends BaseEntity<IndexNode> implements NodeValue, Index
|
||||
/**
|
||||
* 属性. 不同node_type的属性可能不一样
|
||||
*/
|
||||
@TableField(typeHandler = FastjsonTypeHandler.class)
|
||||
@TableField(typeHandler = IgnorePropsJsonTypeHandler.class)
|
||||
private IndexNodeAttributes attributes;
|
||||
|
||||
// !! helper field
|
||||
|
||||
Loading…
Reference in New Issue
Block a user