From 309bceadd68c2c03f1a170d55f4f9bbb359c4fdd Mon Sep 17 00:00:00 2001 From: lihongyu <504404568@qq.com> Date: Tue, 22 Nov 2022 00:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=8F=91=E5=B8=83=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E6=98=BE=E7=A4=BA=E8=A7=84=E5=88=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pal/publisher/client/web/ProcessPublishWeb.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java index 5269dd9c..24fbfabb 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java @@ -2403,15 +2403,18 @@ public class ProcessPublishWeb extends ActionWeb { wsId = team.getWsId(); } List orglist = dao.getPublishedRepositoryList(wsId); - List list1 = new ArrayList(); + List vsersionIdList = new ArrayList(); for (PALRepositoryModel palRepositoryModel : orglist) { String versionId = palRepositoryModel.getVersionId(); List temp = PALRepositoryCache.getByVersionId(wsId,versionId); for (PALRepositoryModel repositoryModel : temp) { if(!repositoryModel.isPublish()&&!repositoryModel.isStop()) { - - list1.add(palRepositoryModel); + if(!vsersionIdList.contains(versionId)) { + list1.add(palRepositoryModel); + vsersionIdList.add(versionId); + + } } } } @@ -2450,8 +2453,8 @@ public class ProcessPublishWeb extends ActionWeb { String versionId = parseObject.getString("versionId"); String sql = "SELECT PLNAME FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLVERSIONID = '"+versionId+"' and ISPUBLISH = '0' and ISSTOP = '0' "; String newName = DBSql.getString(sql); - parseObject.remove("name"); - parseObject.put("name", newName); + parseObject.replace("name", newName); + parseObject.replace("isParent", "true"); } treeData2.add(parseObject); }