From 8b9a5d9bb02c86e908398acbacbfcdaa2c8e88c9 Mon Sep 17 00:00:00 2001 From: Mr-wang Date: Tue, 5 Dec 2023 17:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8E=E6=A8=A1=E5=9E=8B=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8F=90=E7=A4=BA,=E7=8E=B0=E5=B7=B2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/web/CoeProcessLevelWeb.java | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java index eafb36b7..224e2305 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java @@ -9485,8 +9485,15 @@ public class CoeProcessLevelWeb extends ActionWeb { JSONObject elements = definition.getJSONObject("elements"); JSONObject string = elements.getJSONObject(to_id); String title = string.getString("text"); - sb6.append("\"" + title + "\"").append("连线没有入线"); - list_linker.add("\"" + title + "\"" + "连线没有入线"); + if (UtilString.isNotEmpty(title)){ + + sb6.append("\"" + title + "\"").append("连线没有入线"); + list_linker.add("\"" + title + "\"" + "连线没有入线"); + }else { + title = string.getString("title"); + sb6.append("\"" + title + "\"").append("连线没有入线"); + list_linker.add("\"" + title + "\"" + "连线没有入线"); + } } if (UtilString.isNotEmpty(to_id)) { list_linker.remove(to_id); @@ -9495,8 +9502,15 @@ public class CoeProcessLevelWeb extends ActionWeb { JSONObject elements = definition.getJSONObject("elements"); JSONObject string = elements.getJSONObject(from_id); String title = string.getString("text"); - sb6.append("\"" + title + "\"").append("连线没有出线"); - list_linker.add("\"" + title + "\"" + "连线没有出线"); + if (UtilString.isNotEmpty(title)){ + + sb6.append("\"" + title + "\"").append("连线没有出线"); + list_linker.add("\"" + title + "\"" + "连线没有出线"); + }else { + title = string.getString("title"); + sb6.append("\"" + title + "\"").append("连线没有出线"); + list_linker.add("\"" + title + "\"" + "连线没有出线"); + } } }