aris数据迁移IT系统别名映射调整

This commit is contained in:
446052889@qq.com 2022-07-05 18:13:01 +08:00
parent c92421bf9e
commit 7b4863ca65
2 changed files with 13 additions and 0 deletions

View File

@ -108,6 +108,19 @@ public class ArisXmlImportRun {
obj.put("plId", itModel.getId());
obj.put("shapeName", shape.getString("text"));
itShapeMap.put(shape.getString("text"), obj);
// 获取属性中其他IT系统
JSONObject attributes = shape.getJSONObject("dataAttributes");
JSONArray attributesJsonArray = attributes.getJSONArray("attributesJsonArray");
for (int i = 0; i < attributesJsonArray.size(); i++) {
JSONObject attrObj = attributesJsonArray.getJSONObject(i);
if (Constant.METHOD_OTHER_NAME.equals(attrObj.getString("id"))) {
String itVal = attrObj.getString("value");
String[] itValList = StringUtils.split(itVal, ",");
for (String val : itValList) {
itShapeMap.put(val, JSONObject.parseObject(obj.toString()));
}
}
}
}
}
String rolefolderId = checkAndCreatePalRoleFolderModel(coeProcessLevel, wsId);// 创建/获取角色文件夹ID作为角色的顶级文件夹