From 78f28f7bdf6f2c4b342221340be192f09865fb0e Mon Sep 17 00:00:00 2001 From: Mr-wang Date: Mon, 3 Jul 2023 19:55:49 +0800 Subject: [PATCH] =?UTF-8?q?kms=E6=89=B9=E9=87=8F=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=9A=84=E6=97=B6=E5=80=99=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yili/reportform/util/RepositoryAttribute.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/util/RepositoryAttribute.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/util/RepositoryAttribute.java index b2804b50..4b0fd30a 100644 --- a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/util/RepositoryAttribute.java +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/util/RepositoryAttribute.java @@ -173,10 +173,15 @@ public class RepositoryAttribute { inputValue = StringUtils.join(deptValList, ","); } - inputValue = inputValue.replaceAll("'", "'"); - inputValue = inputValue.replaceAll("\"", """); - attrObj.put("text", inputValue); - result.put(attributeModel.getKey(), attrObj); + if (UtilString.isNotEmpty(inputValue)){ + inputValue = inputValue.replaceAll("'", "'"); + inputValue = inputValue.replaceAll("\"", """); + attrObj.put("text", inputValue); + result.put(attributeModel.getKey(), attrObj); + }else { + attrObj.put("text", inputValue); + result.put(attributeModel.getKey(), attrObj); + } } } return result;