From bf34c5d21e65d0d1e988410aec056c88612b2c9a Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Wed, 20 Nov 2024 11:25:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=81=9C=E6=AD=A2=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E6=9C=AA=E6=89=A7=E8=A1=8C=E4=BB=BB=E5=8A=A1=E9=A1=B9=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=B2=A1=E6=9C=89=E6=9B=B4=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1049101 --user=王旭 【任务中心】-手动停止执行中的任务,任务详情中未执行的用例和场景的执行状态没有更新为已停止 https://www.tapd.cn/55049933/s/1612863 --- .../system/mapper/ExtExecTaskItemMapper.xml | 4 ++-- .../system/mapper/ExtExecTaskMapper.java | 3 +++ .../system/mapper/ExtExecTaskMapper.xml | 14 ++++++++++++++ .../system/service/BaseTaskHubService.java | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskItemMapper.xml b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskItemMapper.xml index 87d94fe025..615906521f 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskItemMapper.xml +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskItemMapper.xml @@ -194,7 +194,7 @@ and organization_id = #{organizationId} - and `status` = 'RUNNING' + and `status` in ('RUNNING', 'PENDING') and deleted = false @@ -236,7 +236,7 @@ and organization_id = #{organizationId} - and `status` = 'RUNNING' + and `status` in ('RUNNING', 'PENDING') + + \ No newline at end of file diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/service/BaseTaskHubService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/service/BaseTaskHubService.java index 48566c8afd..50dad4b94d 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/service/BaseTaskHubService.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/service/BaseTaskHubService.java @@ -692,7 +692,7 @@ public class BaseTaskHubService { } return ids; } else { - return request.getSelectIds(); + return extExecTaskMapper.getSelectIds(request.getSelectIds(), flag); } }