提交 b2049bf9 编写于 作者: xignzi's avatar xignzi

release:8.1.8.568,BaseData中转json使用jackson

上级 9c7c474d
......@@ -14,16 +14,16 @@
<packaging>pom</packaging>
<artifactId>ibiz-boot-starter-parent</artifactId>
<groupId>net.ibizsys.plugin</groupId>
<version>8.1.0.567.20</version>
<version>8.1.0.568</version>
<name>iBiz Boot Starter Parent</name>
<description>iBiz Boot Starter Parent</description>
<properties>
<revision>8.1.0.567.20</revision>
<revision>8.1.0.568</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<ibiz-boot-starter.version>8.1.0.567.20</ibiz-boot-starter.version>
<ibiz.cloud.version>8.1.0.567.20</ibiz.cloud.version>
<ibiz-boot-starter.version>8.1.0.568</ibiz-boot-starter.version>
<ibiz.cloud.version>8.1.0.568</ibiz.cloud.version>
<spring-cloud.version>2020.0.1</spring-cloud.version>
<spring-cloud-starter-bootstrap.version>3.0.1</spring-cloud-starter-bootstrap.version>
<fastjson.version>1.2.83</fastjson.version>
......
......@@ -6,14 +6,14 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>ibiz-boot-starter</artifactId>
<groupId>net.ibizsys.plugin</groupId>
<version>8.1.0.567.20</version>
<version>8.1.0.568</version>
<name>iBiz Boot Starter</name>
<description>iBiz Boot Starter</description>
<parent>
<groupId>net.ibizsys.plugin</groupId>
<artifactId>ibiz-boot-starter-parent</artifactId>
<version>8.1.0.567.20</version>
<version>8.1.0.568</version>
<relativePath>../ibiz-boot-starter-parent/pom.xml</relativePath>
</parent>
......
......@@ -9,12 +9,15 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import net.ibizsys.central.dataentity.IDataEntityRuntime;
import net.ibizsys.central.dataentity.service.IDEMethodDTO;
import net.ibizsys.central.dataentity.service.IDEMethodDTORuntime;
import net.ibizsys.central.plugin.boot.core.helper.FieldCache;
import net.ibizsys.central.plugin.boot.core.helper.SpringContextHolder;
import net.ibizsys.central.service.client.IWebClientRep;
import net.ibizsys.central.util.IEntityDTO;
import net.ibizsys.model.dataentity.defield.IPSDEField;
......@@ -815,8 +818,13 @@ public class BaseData implements IEntityDTO {
@JSONField(serialize = false)
public Map<String, Object> toMap()
{
ObjectMapper objectMapper = SpringContextHolder.getBean(ObjectMapper.class);
Map<String, Object> map = new HashMap<>();
map.putAll(JSON.parseObject(JSON.toJSONString(this)));
try {
map.putAll(JSON.parseObject(objectMapper.writeValueAsString(this)));
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
focusNull.forEach(item->{
map.put(item,null);
});
......
......@@ -8,20 +8,20 @@
<parent>
<groupId>net.ibizsys.plugin</groupId>
<artifactId>ibiz-boot-starter-parent</artifactId>
<version>8.1.0.567.20</version>
<version>8.1.0.568</version>
<relativePath>ibiz-boot-starter-parent/pom.xml</relativePath>
</parent>
<groupId>net.ibizsys.plugin</groupId>
<artifactId>ibiz-boot-starters</artifactId>
<version>8.1.0.567.20</version>
<version>8.1.0.568</version>
<packaging>pom</packaging>
<name>ibiz-boot-starters</name>
<description>ibiz-boot-starters</description>
<properties>
<revision>8.1.0.567.20</revision>
<revision>8.1.0.568</revision>
</properties>
<modules>
<module>ibiz-boot-starter-parent</module>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册