From f302442c5d63bb518f3dfac200c7a8869f851027 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Wed, 27 Jul 2022 14:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/DesignerRelationShapeWeb.java | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/relation/web/DesignerRelationShapeWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/relation/web/DesignerRelationShapeWeb.java index 94c4017a..a9791f56 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/relation/web/DesignerRelationShapeWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/relation/web/DesignerRelationShapeWeb.java @@ -768,6 +768,8 @@ public class DesignerRelationShapeWeb extends ActionWeb { String url = jsonObject.getString("url"); String id = jsonObject.getString("id"); + System.out.println("Jsonobject=========="+jsonObject); + System.out.println("url======================"+url); if (UtilString.isNotEmpty(url)) { List data=new ArrayList(); data.add(0,jsonObject.getString("plMethodId")); @@ -782,36 +784,13 @@ public class DesignerRelationShapeWeb extends ActionWeb { } } macroLibraries.put("treeData", jsonArr_new.toString()); - }else if(attrId.equals("R_relevant_flies")){ - if (objects != null) { - for (int i = 0; i < objects.size(); i++) { - String id= objects.getJSONObject(i).getString("id"); - String url =objects.getJSONObject(i).getString("url"); - if (UtilString.isNotEmpty(url)) { - List> nodeElements = CoeDesignerUtil.getShapeMessageJson4(id); - if(nodeElements.size()>0){ - String title = nodeElements.get(0).get("title").toString(); - if(title.equals("岗位")){ - jsonArr_new.add(objects.getJSONObject(i)); - } - } - }else{ - jsonArr_new.add(objects.getJSONObject(i)); - } - - - } - } - macroLibraries.put("treeData", jsonArr_new.toString()); } else if(attrId.equals("post")){ if (objects != null) { for (int i = 0; i < objects.size(); i++) { String id= objects.getJSONObject(i).getString("id"); String url =objects.getJSONObject(i).getString("url"); - /*String titles=objects.getJSONObject(i).getString("title"); - if(!titles.equals("岗位模型") && titles!=null){*/ if (UtilString.isNotEmpty(url)) { String titles=objects.getJSONObject(i).getString("title"); if(titles.equals("岗位模型")){ @@ -829,8 +808,6 @@ public class DesignerRelationShapeWeb extends ActionWeb { }else{ jsonArr_new.add(objects.getJSONObject(i)); } - /*}*/ - } } macroLibraries.put("treeData", jsonArr_new.toString());