泳道图升版处理

This commit is contained in:
zhal 2023-02-20 16:37:12 +08:00
parent 7f70305592
commit 0522307389
3 changed files with 5 additions and 2 deletions

View File

@ -4684,8 +4684,9 @@ public class CoeDesignerWeb extends ActionWeb {
ResponseObject ro = ResponseObject.newOkResponse();
DesignerShapeRelationDao dao = new DesignerShapeRelationDao();
List<DesignerShapeRelationModel> oldModelList = dao.getModelListByFileId(id);
for (DesignerShapeRelationModel oldModel : oldModelList) {
if(oldModelList.size()>0){
DesignerShapeRelationModel oldModel=oldModelList.get(0);
//如果关联角色图则同步复制角色图关联关系
String methodIds = "";
if (oldModel.getAttrId().equals("role")) {
@ -4705,6 +4706,7 @@ public class CoeDesignerWeb extends ActionWeb {
}
}
return ro.toString();
}

View File

@ -716,9 +716,10 @@ public class CoeProcessLevelUtil {
//bybzp 如果图形是过程链图和BPMN图 则不复制流程绩效和角色
PALRepositoryModel model = PALRepositoryCache.getCache().get(uuId);
String methodId = model.getMethodId();
if("process.bpmn2,process.epc".contains(methodId) && "Process_performance_metrics,role".contains(oldModel.getAttrId())){
if(("process.bpmn2,process.epc,process.flowchart".contains(methodId)) && "Process_performance_metrics,role".contains(oldModel.getAttrId())){
continue;
}
//by bzp end
if (mapNewUUID.containsKey(oldModel.getShapeId())) {
DesignerShapeRelationModel newModel = new DesignerShapeRelationModel();