解决新建模型文件属性数据映射问题
This commit is contained in:
parent
1af79cd34b
commit
45aaf7b125
@ -8335,6 +8335,23 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
return ro.toString();
|
||||
}
|
||||
|
||||
|
||||
// 复制文件属性
|
||||
private void updateFileProperty(String oldUuid, String newUuid) {
|
||||
PALRepositoryPropertyDao repositoryPropertyDao = new PALRepositoryPropertyDao();
|
||||
List<PALRepositoryPropertyModel> oldPropertyList = repositoryPropertyDao.getPropertysByPlid(oldUuid, "");
|
||||
List<PALRepositoryPropertyModel> newPropertyList = new ArrayList<PALRepositoryPropertyModel>();
|
||||
if (oldPropertyList != null && oldPropertyList.size() > 0) {
|
||||
for (PALRepositoryPropertyModel propertyModel : oldPropertyList) {
|
||||
propertyModel.setPlId(newUuid);
|
||||
propertyModel.setId(UUIDGener.getUUID());
|
||||
newPropertyList.add(propertyModel);
|
||||
}
|
||||
}
|
||||
repositoryPropertyDao.batchInsert(newPropertyList);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 创建角色/绩效/表单模型
|
||||
* @return
|
||||
@ -8453,8 +8470,10 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
|
||||
/************************************************文件属性*********************************************************/
|
||||
|
||||
//图形的数据属性配置
|
||||
List<PALMethodAttributeModel> attrLists=PALRepositoryAPIManager.getInstance().getValidAndUseAttributeModels(wsId, methodId);
|
||||
|
||||
//复制文件属性
|
||||
updateFileProperty(uuid,model.getId());
|
||||
|
||||
shapes.add(shape);
|
||||
JSONArray newShapes = this.getMethodElementsJSONArray(shapes, 1);
|
||||
JSONObject newElements = new JSONObject();
|
||||
@ -8484,6 +8503,9 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 创建具有合理位置的节点数据
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user