流程导入Word解析方法调整
This commit is contained in:
parent
a680b9f4d1
commit
efe58c3b5b
Binary file not shown.
@ -455,12 +455,15 @@ public class DataMigrationWeb extends ActionWeb {
|
||||
return ResponseObject.newErrResponse("流程文件属性配置异常,没有获取到文件属性");
|
||||
}
|
||||
for (PALRepositoryPropertyModel importProperty : importPropertyList) {
|
||||
WordField<Object> wordField = fileFieldMap.get(importProperty.getPropertyName());
|
||||
|
||||
String title = this.getAttributeTitle(importModel.getWsId(), importModel.getMethodId(), importProperty.getPropertyId());
|
||||
|
||||
WordField<Object> wordField = fileFieldMap.get(title);
|
||||
//旧版本的映射字段支持
|
||||
if (null == wordField && wordUtil.getIsOldVersion()) {
|
||||
Map<String, String> oldWordMapping = wordUtil.getOldWordMapping();
|
||||
for (String s : oldWordMapping.keySet()) {
|
||||
if (s.equals(importProperty.getPropertyName())) {
|
||||
if (s.equals(title)) {
|
||||
String s1 = oldWordMapping.get(s);
|
||||
wordField = fileFieldMap.get(s1);
|
||||
}
|
||||
@ -666,6 +669,19 @@ public class DataMigrationWeb extends ActionWeb {
|
||||
return ResponseObject.newOkResponse("导入成功");
|
||||
}
|
||||
|
||||
private String getAttributeTitle(String wsId,String methodId,String propertyId){
|
||||
String title = "";
|
||||
// 获取所有文件属性
|
||||
List<PALMethodAttributeModel> methodAttrModels = PALRepositoryAPIManager.getInstance().getValidAttributeModels(wsId, methodId);
|
||||
for (PALMethodAttributeModel r : methodAttrModels) {
|
||||
if (r.getKey().equals(propertyId)){
|
||||
title = r.getNewTitle();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return title;
|
||||
}
|
||||
|
||||
private DCContext getFileDcContext(String groupValue, String fileValue) {
|
||||
DCContext context = null;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user