|
@@ -238,8 +238,6 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
public IPage<GetAllInformationDTO> getAllInformation(GetAllInformationVO getAllInformationVO) {
|
|
public IPage<GetAllInformationDTO> getAllInformation(GetAllInformationVO getAllInformationVO) {
|
|
Page<GetAllInformationDTO> getAllInformationDTOPage = new Page<>();
|
|
Page<GetAllInformationDTO> getAllInformationDTOPage = new Page<>();
|
|
|
|
|
|
- int typeId = LexiconTypeEnum.getKey(getAllInformationVO.getType());
|
|
|
|
-
|
|
|
|
List<Long> conceptIdList = null;
|
|
List<Long> conceptIdList = null;
|
|
if(StringUtil.isBlank(getAllInformationVO.getLibName())&&StringUtil.isNotBlank(getAllInformationVO.getName())){
|
|
if(StringUtil.isBlank(getAllInformationVO.getLibName())&&StringUtil.isNotBlank(getAllInformationVO.getName())){
|
|
getAllInformationVO.setLibName(getAllInformationVO.getName());
|
|
getAllInformationVO.setLibName(getAllInformationVO.getName());
|
|
@@ -248,7 +246,7 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
QueryWrapper<LibraryInfo> libraryInfoQe = new QueryWrapper<>();
|
|
QueryWrapper<LibraryInfo> libraryInfoQe = new QueryWrapper<>();
|
|
libraryInfoQe.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
libraryInfoQe.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
libraryInfoQe.like("name", getAllInformationVO.getLibName());
|
|
libraryInfoQe.like("name", getAllInformationVO.getLibName());
|
|
- libraryInfoQe.eq(StringUtil.isNotBlank(getAllInformationVO.getType()),"type_id", typeId);
|
|
|
|
|
|
+ libraryInfoQe.eq(StringUtil.isNotBlank(getAllInformationVO.getType()),"type_id", LexiconTypeEnum.getKey(getAllInformationVO.getType()));
|
|
conceptIdList = libraryinfoFacade.list(libraryInfoQe).stream().map(i->i.getConceptId()).distinct().collect(Collectors.toList());
|
|
conceptIdList = libraryinfoFacade.list(libraryInfoQe).stream().map(i->i.getConceptId()).distinct().collect(Collectors.toList());
|
|
}
|
|
}
|
|
|
|
|
|
@@ -256,7 +254,7 @@ public class ConceptFacade extends ConceptServiceImpl {
|
|
QueryWrapper<Concept> conceptQe = new QueryWrapper<>();
|
|
QueryWrapper<Concept> conceptQe = new QueryWrapper<>();
|
|
conceptQe.in(ListUtil.isNotEmpty(conceptIdList), "id", conceptIdList);
|
|
conceptQe.in(ListUtil.isNotEmpty(conceptIdList), "id", conceptIdList);
|
|
conceptQe.like(StringUtil.isNotBlank(getAllInformationVO.getName()),"lib_name", getAllInformationVO.getName());
|
|
conceptQe.like(StringUtil.isNotBlank(getAllInformationVO.getName()),"lib_name", getAllInformationVO.getName());
|
|
- conceptQe.eq(StringUtil.isNotBlank(getAllInformationVO.getType()),"lib_type", typeId);
|
|
|
|
|
|
+ conceptQe.eq(StringUtil.isNotBlank(getAllInformationVO.getType()),"lib_type", LexiconTypeEnum.getKey(getAllInformationVO.getType()));
|
|
conceptQe.eq(StringUtil.isNotBlank(getAllInformationVO.getIsDeleted()),"is_deleted", getAllInformationVO.getIsDeleted());
|
|
conceptQe.eq(StringUtil.isNotBlank(getAllInformationVO.getIsDeleted()),"is_deleted", getAllInformationVO.getIsDeleted());
|
|
conceptQe.orderByAsc("is_deleted");
|
|
conceptQe.orderByAsc("is_deleted");
|
|
conceptQe.orderByDesc("gmt_modified");
|
|
conceptQe.orderByDesc("gmt_modified");
|