|
|
@ -97,6 +97,9 @@ public class DevDictServiceImpl extends ServiceImpl<DevDictMapper, DevDict> impl
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<Tree<String>> tree(DevDictTreeParam devDictTreeParam) {
|
|
|
|
public List<Tree<String>> tree(DevDictTreeParam devDictTreeParam) {
|
|
|
|
LambdaQueryWrapper<DevDict> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
LambdaQueryWrapper<DevDict> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
|
|
|
// 查询部分字段
|
|
|
|
|
|
|
|
lambdaQueryWrapper.select(DevDict::getId, DevDict::getParentId, DevDict::getCategory, DevDict::getDictLabel,
|
|
|
|
|
|
|
|
DevDict::getDictValue, DevDict::getSortCode);
|
|
|
|
lambdaQueryWrapper.orderByAsc(DevDict::getSortCode);
|
|
|
|
lambdaQueryWrapper.orderByAsc(DevDict::getSortCode);
|
|
|
|
if (ObjectUtil.isNotEmpty(devDictTreeParam.getCategory())) {
|
|
|
|
if (ObjectUtil.isNotEmpty(devDictTreeParam.getCategory())) {
|
|
|
|
lambdaQueryWrapper.eq(DevDict::getCategory, devDictTreeParam.getCategory());
|
|
|
|
lambdaQueryWrapper.eq(DevDict::getCategory, devDictTreeParam.getCategory());
|
|
|
|