Merge remote-tracking branch 'origin/master'
This commit is contained in:
+26
-34
@@ -1635,34 +1635,26 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
//字段属性
|
//字段属性
|
||||||
List<OnlCgformField> fieldList = onlCgformFieldService.getFieldList(ModuleEnum.DOCUMENT_LIBRARY.getValue());
|
List<OnlCgformField> fieldList = onlCgformFieldService.getFieldList(ModuleEnum.DOCUMENT_LIBRARY.getValue());
|
||||||
//标准选择字段
|
//标准选择字段
|
||||||
List<OnlCgformField> standardOnlCgformFieldList = fieldList.stream()
|
// List<OnlCgformField> standardOnlCgformFieldList = fieldList.stream()
|
||||||
.filter(e -> FieldTypeEnum.STANDARD.getValue().equals(e.getFieldShowType())).collect(Collectors.toList());
|
// .filter(e -> FieldTypeEnum.STANDARD.getValue().equals(e.getFieldShowType())).collect(Collectors.toList());
|
||||||
if(standardOnlCgformFieldList.size() != 0){
|
// if(standardOnlCgformFieldList.size() != 0){
|
||||||
List<String> collect = standardOnlCgformFieldList.stream().map(OnlCgformField::getDbFieldName).collect(Collectors.toList());
|
// List<String> collect = standardOnlCgformFieldList.stream().map(OnlCgformField::getDbFieldName).collect(Collectors.toList());
|
||||||
List<String> standardList = new ArrayList<>();
|
// List<String> standardList = new ArrayList<>();
|
||||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
// for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||||
String key = entry.getKey();
|
// String key = entry.getKey();
|
||||||
if(collect.contains(key)){
|
// if(collect.contains(key)){
|
||||||
standardList.add(key);
|
// standardList.add(key);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if(standardList.size() != 0){
|
// if(standardList.size() != 0){
|
||||||
for (String standard : standardList) {
|
// for (String standard : standardList) {
|
||||||
map.put(standard, map.get(standard+"_id"));
|
// map.put(standard, map.get(standard+"_id"));
|
||||||
map.remove(standard+"_id");
|
// map.remove(standard+"_id");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
String cut = (String) map.get("cut");
|
String cut = (String) map.get("cut");
|
||||||
map.remove("cut");
|
map.remove("cut");
|
||||||
// if (ObjectUtils.isNotEmpty(map.get("replace_standard_id"))) {
|
|
||||||
// map.put("replace_standard", map.get("replace_standard_id"));
|
|
||||||
// }
|
|
||||||
// if (ObjectUtils.isNotEmpty(map.get("corresponding_standard_id"))) {
|
|
||||||
// map.put("corresponding_standard", map.get("corresponding_standard_id"));
|
|
||||||
// }
|
|
||||||
// map.remove("replace_standard_id");
|
|
||||||
// map.remove("corresponding_standard_id");
|
|
||||||
//获取搜索中心字段
|
//获取搜索中心字段
|
||||||
List<OnlCgformField> searchFieldList = fieldList.stream().filter(e -> YesOrNoEnum.YES.getValue().equals(e.getIsShowSearch())).collect(Collectors.toList());
|
List<OnlCgformField> searchFieldList = fieldList.stream().filter(e -> YesOrNoEnum.YES.getValue().equals(e.getIsShowSearch())).collect(Collectors.toList());
|
||||||
//时间类型字段
|
//时间类型字段
|
||||||
@@ -2210,14 +2202,14 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ("replace_standard".equals(key) || "corresponding_standard".equals(key)) {
|
// if ("replace_standard".equals(key) || "corresponding_standard".equals(key)) {
|
||||||
if (ObjectUtils.isNotEmpty(value)) {
|
// if (ObjectUtils.isNotEmpty(value)) {
|
||||||
value = getReplaceStandardName(value);
|
// value = getReplaceStandardName(value);
|
||||||
}
|
// }
|
||||||
if (ObjectUtils.isNotEmpty(valueTemp)) {
|
// if (ObjectUtils.isNotEmpty(valueTemp)) {
|
||||||
valueTemp = getReplaceStandardName(valueTemp);
|
// valueTemp = getReplaceStandardName(valueTemp);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
//其他类型(被代替标准不处理)
|
//其他类型(被代替标准不处理)
|
||||||
if (!"replaced_standard".equals(key)) {
|
if (!"replaced_standard".equals(key)) {
|
||||||
if (ObjectUtils.isNotEmpty(value)) {
|
if (ObjectUtils.isNotEmpty(value)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user