From 5c8a4fbfb89c4bff817efe77000c23648dfba1cb Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Fri, 3 Jan 2025 11:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/dictionary/service/impl/DictTreeServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) ); }