This commit is contained in:
zhal 2022-08-11 14:50:55 +08:00
parent 50d7717efb
commit f3313e0a0b

View File

@ -3761,6 +3761,7 @@ public String CreateincidenceRelation(boolean isLargeIteration,String olduuid,PA
ResponseObject ro = null; ResponseObject ro = null;
DesignerShapeRelationDao dao = new DesignerShapeRelationDao(); DesignerShapeRelationDao dao = new DesignerShapeRelationDao();
List<DesignerShapeRelationModel> oldModelList = dao.getModelListByFileId(olduuid); List<DesignerShapeRelationModel> oldModelList = dao.getModelListByFileId(olduuid);
if(oldModelList.size()>0){
for (DesignerShapeRelationModel oldModel : oldModelList) { for (DesignerShapeRelationModel oldModel : oldModelList) {
PALRepositoryModel model = PALRepositoryCache.getCache().get(newModel.getId()); PALRepositoryModel model = PALRepositoryCache.getCache().get(newModel.getId());
@ -3843,13 +3844,13 @@ public String CreateincidenceRelation(boolean isLargeIteration,String olduuid,PA
} }
ro = ResponseObject.newWarnResponse("创建失败");
} }
return ro.toString();
}
}else{
ro = ResponseObject.newWarnResponse("创建失败");
} }
return ro.toString(); return ro.toString();
} }