yaowanxin
6 天以前 09e1c1155f4db6dc7a829e515337aa88ac4db81c
src/main/java/com/ruoyi/warehouse/service/impl/DocumentClassificationServiceImpl.java
@@ -48,14 +48,10 @@
    }
    @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);