文档库--新增,编辑修改es
This commit is contained in:
+17
@@ -1269,6 +1269,13 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
objectMap.put("file_sort",idTemp+"_"+b);
|
||||
}
|
||||
}
|
||||
for (OnlCgformField onlCgformField : searchFieldList) {
|
||||
String s = (String) map.get(onlCgformField.getDbFieldName());
|
||||
if(StringUtils.isNotBlank(s)){
|
||||
mapBaseDateCn.put(onlCgformField.getDbFieldName(), s);
|
||||
mapBaseDateEn.put(onlCgformField.getDbFieldName(), s);
|
||||
}
|
||||
}
|
||||
//基础数据(中文)
|
||||
putMapCn(idTemp, (String) map.get("serial_number"), "文档库",
|
||||
sbCn.toString(), (String) map.get("title"), "", "",
|
||||
@@ -1935,6 +1942,16 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
}
|
||||
}
|
||||
|
||||
for (OnlCgformField onlCgformField : searchFieldList) {
|
||||
String s = (String) map.get(onlCgformField.getDbFieldName());
|
||||
if(FieldTypeEnum.DATE_SINGLE.getValue().equals(onlCgformField.getFieldShowType()) && StringUtils.isNotBlank(s)){
|
||||
s = s.split(" ")[0];
|
||||
}
|
||||
if(StringUtils.isNotBlank(s)){
|
||||
mapBaseDateCn.put(onlCgformField.getDbFieldName(), s);
|
||||
mapBaseDateEn.put(onlCgformField.getDbFieldName(), s);
|
||||
}
|
||||
}
|
||||
//基础数据中文(es)
|
||||
putMapCn((String) map.get("id"), (String) map.get("serial_number"), "文档库",
|
||||
sbCn.toString(), (String) map.get("title"), "", "",
|
||||
|
||||
+3
@@ -482,6 +482,9 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
||||
|
||||
for (Map<String, Object> stringObjectMap : list) {
|
||||
Map<String, Object> mapSource = (Map<String, Object>) stringObjectMap.get("_source");
|
||||
if(StringUtils.isBlank(selectValue)){
|
||||
mapSource.put("file_text","");
|
||||
}
|
||||
if (StringUtils.isNotBlank(selectValueTwo)) {
|
||||
//二次查询
|
||||
int count = 0;
|
||||
|
||||
Reference in New Issue
Block a user