From b2158561374d9da873e226a35097245679c7c743 Mon Sep 17 00:00:00 2001 From: qiaozhanwei Date: Thu, 25 Apr 2019 13:40:10 +0800 Subject: [PATCH] task queue count update --- .../java/cn/escheduler/api/service/DataAnalysisService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/escheduler-api/src/main/java/cn/escheduler/api/service/DataAnalysisService.java b/escheduler-api/src/main/java/cn/escheduler/api/service/DataAnalysisService.java index 7462519ca1..326474ce88 100644 --- a/escheduler-api/src/main/java/cn/escheduler/api/service/DataAnalysisService.java +++ b/escheduler-api/src/main/java/cn/escheduler/api/service/DataAnalysisService.java @@ -370,8 +370,8 @@ public class DataAnalysisService { taskQueueCount = taskInstanceMapper.countTask(loginUser.getId(),loginUser.getUserType(),projectId, tasksQueueIds); } - if (tasksQueueIds.length != 0){ - taskKillCount = taskInstanceMapper.countTask(loginUser.getId(),loginUser.getUserType(),projectId, tasksQueueIds); + if (tasksKillIds.length != 0){ + taskKillCount = taskInstanceMapper.countTask(loginUser.getId(),loginUser.getUserType(),projectId, tasksKillIds); }