1.正式检测-检测树
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user