Merge remote-tracking branch 'origin/dev_2nd_period_test' into dev_2nd_period_test
This commit is contained in:
+4
-4
@@ -196,15 +196,15 @@ public class ProblemKnowledgeBaseEOServiceImpl extends ServiceImpl<ProblemKnowle
|
||||
Map<String, Object> stringMapEn = new HashMap<>();
|
||||
this.problemKnowledgeBaseEOConvertMapByCut(problemKnowledgeBaseEO,CutEnum.EN.getValue(),stringMapEn);
|
||||
|
||||
this.putMap(problemKnowledgeBaseId,sbCn.toString(),CutEnum.CN.getValue(),stringMapCn,SEARCH_FLAG,"问题知识库");
|
||||
this.putMap(problemKnowledgeBaseId,sbEn.toString(),CutEnum.EN.getValue(),stringMapEn,SEARCH_FLAG,"Problem knowledge base");
|
||||
this.putMap(problemKnowledgeBaseId,sbCn.toString(),CutEnum.CN.getValue(),stringMapCn,SEARCH_FLAG,"知识分享");
|
||||
this.putMap(problemKnowledgeBaseId,sbEn.toString(),CutEnum.EN.getValue(),stringMapEn,SEARCH_FLAG,"Knowledge Sharing");
|
||||
|
||||
Map<String, Object> stringMapCnBase = new HashMap<>();
|
||||
this.problemKnowledgeBaseEOConvertMapByCut(problemKnowledgeBaseEO,CutEnum.EN.getValue(),stringMapCnBase);
|
||||
Map<String, Object> stringMapEnBase = new HashMap<>();
|
||||
this.problemKnowledgeBaseEOConvertMapByCut(problemKnowledgeBaseEO,CutEnum.EN.getValue(),stringMapEnBase);
|
||||
this.putMap(problemKnowledgeBaseId,sbCn.toString(),CutEnum.CN.getValue(),stringMapCnBase,null,"问题知识库");
|
||||
this.putMap(problemKnowledgeBaseId,sbEn.toString(),CutEnum.EN.getValue(),stringMapEnBase,null,"Problem knowledge base");
|
||||
this.putMap(problemKnowledgeBaseId,sbCn.toString(),CutEnum.CN.getValue(),stringMapCnBase,null,"知识分享");
|
||||
this.putMap(problemKnowledgeBaseId,sbEn.toString(),CutEnum.EN.getValue(),stringMapEnBase,null,"Knowledge Sharing");
|
||||
|
||||
mapListTempCn.add(stringMapCn);
|
||||
mapListTempEn.add(stringMapEn);
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.jero.modules.searchcenter.enums;
|
||||
public enum ModuleTypeFlagEnum {
|
||||
DOCUMENT_LIBRARY("文档库","WDK"),
|
||||
LAWS_MONTHLY_REPORT("法规月报","FGYB"),
|
||||
PROBLEM_KNOWLEDGE_BASE_CLASSIFY("问题知识库","WTZSK");
|
||||
PROBLEM_KNOWLEDGE_BASE_CLASSIFY("知识分享","WTZSK");
|
||||
|
||||
String name;
|
||||
String value;
|
||||
|
||||
+7
-1
@@ -1488,7 +1488,13 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
||||
List<ProblemKnowledgeBaseUserEO> problemKnowledgeBaseUserEOList = this.problemKnowledgeBaseUserEOService.list(userPermissionQueryWrapper);
|
||||
|
||||
if(CollectionUtils.isNotEmpty(problemKnowledgeBaseUserEOList)){
|
||||
List<String> problemKnowledgeBaseIdList = problemKnowledgeBaseUserEOList.stream().map(ProblemKnowledgeBaseUserEO::getProblemKnowledgeBaseId).distinct().collect(Collectors.toList());
|
||||
List<String> problemKnowledgeBaseIdList = problemKnowledgeBaseUserEOList.stream().filter(e->{
|
||||
boolean flag = false;
|
||||
if(StringUtils.isNotEmpty(e.getProblemKnowledgeBaseId())){
|
||||
flag = true;
|
||||
}
|
||||
return flag;
|
||||
}).map(ProblemKnowledgeBaseUserEO::getProblemKnowledgeBaseId).distinct().collect(Collectors.toList());
|
||||
|
||||
//in查询该用户拥有权限的问题知识库id。
|
||||
Map<String, Object> fieldKeyMap2 = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user