数据属性 角色模型跳转 多版本下 小组用户权限问题
This commit is contained in:
parent
4b8f7c67ca
commit
49c26905a9
Binary file not shown.
@ -1541,7 +1541,7 @@ public class PALRepositoryQueryAPIManager {
|
||||
if (versionIds.size() > 0){
|
||||
List<PALRepositoryModel> modelList = new ArrayList<>();
|
||||
for (PALRepositoryModel model : list) {
|
||||
if (versionIds.contains(model.getId())){
|
||||
if (versionIds.contains(model.getVersionId())){
|
||||
modelList.add(model);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4226,12 +4226,17 @@ public class CoeDesignerWeb extends ActionWeb {
|
||||
}
|
||||
|
||||
|
||||
// 新版本文件 小组权限设置
|
||||
if (UtilString.isNotEmpty(teamId)){
|
||||
CoeCooperationAPIManager.getInstance().addRepositoryToTeamAndRolePerm(_uc,teamId,lastplModel.getVersionId(),true,true);
|
||||
}
|
||||
|
||||
|
||||
//1.创建角色模型
|
||||
DesignerShapeRelationDao dao = new DesignerShapeRelationDao();
|
||||
List<DesignerShapeRelationModel> oldModelList = dao.getModelListByFileId(oldUUID);
|
||||
if (oldModelList.size()>0 && oldModelList.get(0).getAttrId().equals("role")) {
|
||||
CreateRelevanceRoleModel(isLargeIteration,oldUUID,PALRepositoryCache.getCache().get(newUUID),mapNewUUID,tempVer);
|
||||
CreateRelevanceRoleModel(isLargeIteration,oldUUID,PALRepositoryCache.getCache().get(newUUID),mapNewUUID,tempVer,teamId);
|
||||
}
|
||||
|
||||
//创建绩效关联关系
|
||||
@ -4261,7 +4266,7 @@ public class CoeDesignerWeb extends ActionWeb {
|
||||
* @param isLargeIteration
|
||||
* @param olduuid
|
||||
*/
|
||||
public String CreateRelevanceRoleModel(boolean isLargeIteration,String olduuid,PALRepositoryModel newModel,Map<String, String> mapNewUUID,Double tempVer){
|
||||
public String CreateRelevanceRoleModel(boolean isLargeIteration,String olduuid,PALRepositoryModel newModel,Map<String, String> mapNewUUID,Double tempVer,String teamId){
|
||||
ResponseObject ro = null;
|
||||
DesignerShapeRelationDao dao = new DesignerShapeRelationDao();
|
||||
List<DesignerShapeRelationModel> oldModelList = dao.getModelListByFileId(olduuid);
|
||||
@ -4335,6 +4340,10 @@ public class CoeDesignerWeb extends ActionWeb {
|
||||
}
|
||||
}
|
||||
|
||||
// 新版本文件 小组权限设置
|
||||
if (UtilString.isNotEmpty(teamId)){
|
||||
CoeCooperationAPIManager.getInstance().addRepositoryToTeamAndRolePerm(_uc,teamId,lastplModel.getVersionId(),true,true);
|
||||
}
|
||||
|
||||
CoeProcessLevelUtil.copyRepositoryProperty(PALRepositoryCache.getCache().get(relationFileId), PALRepositoryCache.getCache().get(newUUID), mapNewUUID1, _uc);
|
||||
ro = ResponseObject.newOkResponse("创建成功");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user