1.正式检测-检测树

This commit is contained in:
wr
2025-01-02 13:48:42 +08:00
parent 14f3ab52bb
commit f45a344db8
15 changed files with 364 additions and 40 deletions

View File

@@ -64,4 +64,11 @@ public interface IDictTreeService extends IService<DictTree> {
* @date 2023/12/18
*/
//List<DictTree> queryAllByType(Integer type);
/**
* 根据字典树
* @param ids
* @return
*/
List<DictTree> getDictTreeById(List<String> ids);
}

View File

@@ -155,6 +155,13 @@ public class DictTreeServiceImpl extends ServiceImpl<DictTreeMapper, DictTree> i
}).sorted(Comparator.comparingInt(DictTree::getSort)).collect(Collectors.toList());
}
@Override
public List<DictTree> getDictTreeById(List<String> ids) {
return this.list(new LambdaQueryWrapper<DictTree>()
.in(DictTree::getId,ids)
);
}
// @Override
// public List<DictTree> queryAll() {
// LambdaQueryWrapper<DictTree> lambdaQueryWrapper = new LambdaQueryWrapper<>();