From 8c5aad4aa58400bead2a80af9467db839bc38303 Mon Sep 17 00:00:00 2001 From: yujh_java Date: Tue, 28 Oct 2025 13:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9E=E6=B3=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/coe/pal/pal/output/util/OutputWordUtil.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java index cd3a8675..c7850baf 100644 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java @@ -3155,8 +3155,11 @@ public class OutputWordUtil { public static void mergeMRWord(String filePath, String uuid,JSONObject dataMap) { Map stringJSONObjectMap = PALRepositoryQueryAPIManager.queryRepositoryAttributeById(uuid); JSONObject attrJson = stringJSONObjectMap.get("management_requirements_Location"); + if(null == attrJson){ + return; + } String text = attrJson.getString("text"); - if ("不显示管理要求".equals(text)) { + if ("不显示管理要求".equals(text) || UtilString.isEmpty(text)) { return; } BO mrBO = SDK.getBOAPI().getByKeyField("BO_EU_PROCESS_MR", "FILEUUID", uuid);