diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index a033543b..f1ea735a 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ 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 06c65c07..0a7e6749 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 @@ -5464,6 +5464,19 @@ public class CoeProcessLevelWeb extends ActionWeb { e.printStackTrace(); } } + // 创建的副本 自动加权 遍历所有小组 判断父级文件夹/架构是否在该小组下是否有权限 + String finalTargetUUID = targetUUID; + new Thread(() -> { + if (UtilString.isNotEmpty(finalTargetUUID) && finalTargetUUID.length() == 36){ + List allTeamInfo = CoeCooperationAPIManager.getInstance().getAllTeamInfo(); + allTeamInfo.parallelStream().forEach(teamInfo -> { + boolean isPerm = teamInfo.getVersionIds().stream().anyMatch(teamPermId -> teamPermId.equals(finalTargetUUID)); + if (isPerm && !teamInfo.getVersionIds().contains(versionId)){ // 创建的副本 父级有权限且自身没在小组权限中 + CoeCooperationAPIManager.getInstance().addPermDataToTeamAndRole(teamInfo.getTeamId(), versionId); + } + }); + } + }).start(); ro.put("mapNewUUID",mapNewUUID); ro.put("useId", CoeProcessLevelDaoFacotory.createCoeProcessLevel().getCoeUseProcessLevelByRid(plRid).get(0).getId()); }