This commit is contained in:
zhal 2022-07-27 18:39:50 +08:00
parent d8b5450ad8
commit cd6c95c1e8

View File

@ -756,7 +756,6 @@ public class DesignerRelationShapeWeb extends ActionWeb {
String treeJson=getTreeJson(wsId, "", category, type, method,ruuid,attrId); String treeJson=getTreeJson(wsId, "", category, type, method,ruuid,attrId);
//JSONObject jsonObject = JSONObject.parseObject(json); //JSONObject jsonObject = JSONObject.parseObject(json);
JSONArray jsonArr_new= new JSONArray(); JSONArray jsonArr_new= new JSONArray();
JSONArray objects=JSONArray.parseArray(treeJson); JSONArray objects=JSONArray.parseArray(treeJson);
@ -774,6 +773,7 @@ public class DesignerRelationShapeWeb extends ActionWeb {
List data=new ArrayList(); List data=new ArrayList();
data.add(0,jsonObject.getString("plMethodId")); data.add(0,jsonObject.getString("plMethodId"));
data.add(1,ruuid); data.add(1,ruuid);
System.out.println("data=================="+data);
RowMap rowMap = DBSql.getMap("SELECT EXT2 FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID=? AND EXT2=?", id, data.toString()); RowMap rowMap = DBSql.getMap("SELECT EXT2 FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID=? AND EXT2=?", id, data.toString());
if (rowMap != null) { if (rowMap != null) {
jsonArr_new.add(objects.getJSONObject(i)); jsonArr_new.add(objects.getJSONObject(i));
@ -791,7 +791,6 @@ public class DesignerRelationShapeWeb extends ActionWeb {
String id= objects.getJSONObject(i).getString("id"); String id= objects.getJSONObject(i).getString("id");
String url =objects.getJSONObject(i).getString("url"); String url =objects.getJSONObject(i).getString("url");
if (UtilString.isNotEmpty(url)) { if (UtilString.isNotEmpty(url)) {
String titles=objects.getJSONObject(i).getString("title"); String titles=objects.getJSONObject(i).getString("title");
if(titles.equals("岗位模型")){ if(titles.equals("岗位模型")){