路径空格问题

This commit is contained in:
446052889@qq.com 2022-07-07 21:00:53 +08:00
parent 0d29684ecb
commit 4d8384704b
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ public class ArisXmlHandleWeb {
path.add(groupMap.get(modelParent).getName());
getPath(path, groupMap.get(modelParent).getPid());
}
modelModel.setModelPath(StringUtils.join(path, "\\"));
modelModel.setModelPath(StringUtils.join(path, "\\").replace(" ", ""));
}
}

View File

@ -417,7 +417,7 @@ public class ArisXmlImportRun {
propertyModels = propertyModels.stream().filter(item -> Constant.METHOD_ARIS_URL.equals(item.getPropertyId())).collect(Collectors.toList());
Map<String, String> map = new HashMap<>();
for (PALRepositoryPropertyModel prop : propertyModels) {
map.put(prop.getPlId(), prop.getPropertyValue());
map.put(prop.getPlId(), prop.getPropertyValue().replace(" ", ""));// 去除空格
}
for (PALRepositoryModel model : list) {
if (map.containsKey(model.getId())) {
@ -1361,7 +1361,7 @@ public class ArisXmlImportRun {
Timestamp nowTime = new Timestamp(System.currentTimeMillis());
PALRepositoryModelImpl model = CoeProcessLevelUtil.createPALRepositoryModel(id, UUIDGener.getUUID(), wsId, arisModel.getName(), "", orderIndex, parentId, "org", true, 1,
id, false, "org.role", "0", 1, null, null, uc.getUID(), uc.getUID(), nowTime, null, null, null, null,
id, false, "org.role", "0", 1, null, null, uc.getUID(), uc.getUID(), nowTime, null, palModel.getId(), null, null,
null, null, null, null, null, -1);
coeProcessLevel.insert(model);
LogUtil.appendLog(Constant.LOG_END + "创建与ARIS流程同名的角色图[" + arisModel.getName() + "][" + model.getId() + "]", simpleLogFile, fullLogFile);