From c022f7f0fca84e1999ff5a8ce7d7f951e10fd94c Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Mon, 21 Apr 2025 15:22:03 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E6=89=B9=E9=87=8F=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E8=BE=83=E5=A4=9A=EF=BC=8C=E5=B1=95=E5=BC=80=E6=94=B6=E8=B5=B7?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1404213169455104]作业管理-批量作业较多,展开收起异常 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1404213169455104 --- .../module/autoexec/api/job/AutoexecJobSearchApi.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/neatlogic/module/autoexec/api/job/AutoexecJobSearchApi.java b/src/main/java/neatlogic/module/autoexec/api/job/AutoexecJobSearchApi.java index d89ed36a..5b49a688 100644 --- a/src/main/java/neatlogic/module/autoexec/api/job/AutoexecJobSearchApi.java +++ b/src/main/java/neatlogic/module/autoexec/api/job/AutoexecJobSearchApi.java @@ -30,6 +30,7 @@ import neatlogic.framework.restful.core.privateapi.PrivateApiComponentBase; import neatlogic.framework.util.TableResultUtil; import neatlogic.framework.util.TimeUtil; import neatlogic.module.autoexec.service.AutoexecJobService; +import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.MapUtils; import org.springframework.stereotype.Service; @@ -102,6 +103,9 @@ public class AutoexecJobSearchApi extends PrivateApiComponentBase { AutoexecJobVo jobVo = JSON.toJavaObject(jsonObj, AutoexecJobVo.class); if (parentId != null) { List idList = autoexecJobMapper.getJobIdListByParentId(parentId); + if (CollectionUtils.isEmpty(idList)) { + return TableResultUtil.getResult(new ArrayList<>(), jobVo); + } jobVo.setIdList(idList); jobVo.setSourceList(new ArrayList() {{ this.add(JobSource.DEPLOY.getValue()); -- Gitee