文档库--搜索文档库(输入框搜索条件)
This commit is contained in:
+13
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user