文档库--搜索文档库(输入框搜索条件)

This commit is contained in:
zhn
2022-03-28 11:04:17 +08:00
parent a9c5c2b74e
commit 8afae9e546
@@ -70,6 +70,19 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
List<Map<String, Object>> mapList = iBussDocumentLibraryEOService.queryCondition(flag, cut, searchFlag);
//搜索条件手动添加正文
if("1".equals(searchFlag)){
int index = -2;
for (Map<String, Object> objectMap : mapList) {
index ++;
if("中文标题".equals(objectMap.get("db_field_txt"))){
objectMap.put("db_field_txt","标题");
}
if("title_en".equals(objectMap.get("db_field_name"))){
index ++;
}
}
//删除英文标题
mapList.remove(index);
//添加正文
Map<String,Object> map = new HashMap<>();
map.put("db_field_txt","正文");
map.put("field_show_type","1");