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 5af50d5f..5cd1b5a9 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/designer/web/CoeDesignerWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java index 90dd707b..cfc46417 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/web/CoeDesignerWeb.java @@ -4672,27 +4672,27 @@ public class CoeDesignerWeb extends ActionWeb { List oldModelList = dao.getModelListByFileId(id); if (oldModelList.size() > 0) { - DesignerShapeRelationModel oldModel = oldModelList.get(0); + int answer = 0; for (DesignerShapeRelationModel oneModel : oldModelList) { //如果关联角色图,则同步复制角色图关联关系 String methodIds = ""; - if (oldModel.getAttrId().equals("role")) { - int answer = 0; + if (oneModel.getAttrId().equals("role")) { + PALRepository repository = CoeProcessLevelDaoFacotory.createCoeProcessLevel(); - PALRepositoryModel lastPlModel = repository.getInstance(oldModel.getRelationFileId()); + PALRepositoryModel lastPlModel = repository.getInstance(oneModel.getRelationFileId()); answer = repository.updateStateOfVersionUuid(lastPlModel.getVersionId());// 更新所有的为0 answer = repository.updateUseStateOfVersionUuid(lastPlModel.getId());// 更新当前版本为使用状态 CoeProcessLevelNoCache.getInstance().reloadInBackground(lastPlModel.getWsId()); - if (answer > 0) { - ro.put("id", id); - return ro.toString(); - } else { - return ResponseObject.newErrResponse("使用版本更新失败").toString(); - } - + break; } } + if (answer > 0) { + ro.put("id", id); + return ro.toString(); + } else { + return ResponseObject.newErrResponse("使用版本更新失败").toString(); + } }