zss
2025-08-29 a7a74cd6daa0ab837046882e16426916f4cef1bd
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);