| | |
| | | } |
| | | |
| | | @Override |
| | | public List<DocumentClassificationTreeDto> selectDocumentClassificationList(DocumentClassificationDto documentClassificationDto) { |
| | | public List<DocumentClassificationTreeDto> selectDocumentClassificationList() { |
| | | // 查询根节点(parentId 为 null) |
| | | LambdaQueryWrapper<DocumentClassification> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.isNull(DocumentClassification::getParentId); |
| | | |
| | | if (documentClassificationDto.getCategory() != null && !documentClassificationDto.getCategory().isEmpty()) { |
| | | queryWrapper.like(DocumentClassification::getCategory, documentClassificationDto.getCategory()); |
| | | } |
| | | |
| | | // 查询根节点列表 |
| | | List<DocumentClassification> rootList = baseMapper.selectList(queryWrapper); |