From 1eae18e6666c20ad831ee492e1a90d1e88841ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Fri, 3 Mar 2023 15:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91LinkDownProperty?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/util/jsonschema/validate/LinkDownProperty.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/jsonschema/validate/LinkDownProperty.java b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/jsonschema/validate/LinkDownProperty.java index 3815d477..b2078368 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/jsonschema/validate/LinkDownProperty.java +++ b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/jsonschema/validate/LinkDownProperty.java @@ -1,5 +1,6 @@ package com.jero.common.util.jsonschema.validate; +import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.jero.common.util.jsonschema.BaseColumn; import com.jero.common.util.jsonschema.CommonProperty; @@ -21,7 +22,7 @@ public class LinkDownProperty extends CommonProperty { /** * 级联下拉组件 的其他级联列 */ - List otherColumns; + transient List otherColumns; public String getDictTable(){ return this.dictTable; @@ -57,7 +58,7 @@ public class LinkDownProperty extends CommonProperty { Map map = new HashMap<>(); map.put("key", getKey()); JSONObject prop = getCommonJson(); - JSONObject temp = JSONObject.parseObject(this.dictTable); + JSONObject temp = JSON.parseObject(this.dictTable); prop.put("config", temp); prop.put("others", otherColumns); map.put("prop", prop);