diff --git a/system/src/main/java/com/njcn/gather/system/dictionary/service/impl/DictTreeServiceImpl.java b/system/src/main/java/com/njcn/gather/system/dictionary/service/impl/DictTreeServiceImpl.java index 638c8cca..d4bf6c40 100644 --- a/system/src/main/java/com/njcn/gather/system/dictionary/service/impl/DictTreeServiceImpl.java +++ b/system/src/main/java/com/njcn/gather/system/dictionary/service/impl/DictTreeServiceImpl.java @@ -1,6 +1,8 @@ package com.njcn.gather.system.dictionary.service.impl; +import cn.hutool.core.collection.CollUtil; import cn.hutool.core.text.StrPool; +import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -158,7 +160,7 @@ public class DictTreeServiceImpl extends ServiceImpl i @Override public List getDictTreeById(List ids) { return this.list(new LambdaQueryWrapper() - .in(DictTree::getId,ids) + .in(CollUtil.isNotEmpty(ids), DictTree::getId,ids) ); }