文档库搜索条件-标题
This commit is contained in:
+17
-2
@@ -455,13 +455,27 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fieldList = fieldList.stream().filter(e -> YesOrNoEnum.YES.getValue().equals(String.valueOf(e.getIsQuery()))).collect(Collectors.toList());
|
fieldList = fieldList.stream().filter(e -> YesOrNoEnum.YES.getValue().equals(String.valueOf(e.getIsQuery()))).collect(Collectors.toList());
|
||||||
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
|
fieldList = fieldList.stream().filter(e->!"title_en".equals(e.getDbFieldName())).collect(Collectors.toList());
|
||||||
|
}else{
|
||||||
|
fieldList = fieldList.stream().filter(e->!"title".equals(e.getDbFieldName())).collect(Collectors.toList());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//树形数据字典
|
//树形数据字典
|
||||||
List<SysCategoryTreeVO> sysCategoryTree = sysCategoryService.getSysCategoryTree(null);
|
List<SysCategoryTreeVO> sysCategoryTree = sysCategoryService.getSysCategoryTree(null);
|
||||||
List<Map<String, Object>> list = new ArrayList<>();
|
List<Map<String, Object>> list = new ArrayList<>();
|
||||||
for (OnlCgformField onlCgformField : fieldList) {
|
for (OnlCgformField onlCgformField : fieldList) {
|
||||||
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
|
if("title".equals(onlCgformField.getDbFieldName()) || "title_en".equals(onlCgformField.getDbFieldName())){
|
||||||
|
onlCgformField.setDbFieldTxt("标题");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if("title".equals(onlCgformField.getDbFieldName()) || "title_en".equals(onlCgformField.getDbFieldName())){
|
||||||
|
onlCgformField.setDbFieldEnName("Title");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
if ("technology_territory".equals(onlCgformField.getDbFieldName())) {
|
if ("technology_territory".equals(onlCgformField.getDbFieldName())) {
|
||||||
List<SysCategoryTreeVO> sysCategoryTreeVOList = sysCategoryTree.stream().filter(e -> onlCgformField.getDictId().equals(e.getDictId())).collect(Collectors.toList());
|
List<SysCategoryTreeVO> sysCategoryTreeVOList = sysCategoryTree.stream().filter(e -> onlCgformField.getDictId().equals(e.getDictId())).collect(Collectors.toList());
|
||||||
@@ -3548,11 +3562,12 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private String getConditionStr(Map<String, Object> parameter) {
|
private String getConditionStr(Map<String, Object> parameter) {
|
||||||
|
String cut = (String) parameter.get("cut");
|
||||||
//查询条件
|
//查询条件
|
||||||
StringBuilder conditionSb = new StringBuilder("where 1 = 1");
|
StringBuilder conditionSb = new StringBuilder("where 1 = 1");
|
||||||
|
|
||||||
//过滤查询条件字段类型使用
|
//过滤查询条件字段类型使用
|
||||||
List<Map<String, Object>> mapList = queryCondition("1", null, null);
|
List<Map<String, Object>> mapList = queryCondition("1", cut, null);
|
||||||
|
|
||||||
//查询条件处理
|
//查询条件处理
|
||||||
for (Map.Entry<String, Object> entry : parameter.entrySet()) {
|
for (Map.Entry<String, Object> entry : parameter.entrySet()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user