From 5afff93914b27f18de771709e47cc41b562209c1 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Mon, 28 Oct 2024 17:49:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83):=20?= =?UTF-8?q?=20=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048241 --user=王旭 【任务中心】即时任务列表-批量删除-未生成系统日志 https://www.tapd.cn/55049933/s/1599599 --- .../project/controller/ProjectTaskHubController.java | 2 +- .../system/controller/OrganizationTaskHubController.java | 2 +- .../metersphere/system/controller/SystemTaskHubController.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/controller/ProjectTaskHubController.java b/backend/services/project-management/src/main/java/io/metersphere/project/controller/ProjectTaskHubController.java index c17eb5331a..437b54eb17 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/controller/ProjectTaskHubController.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/controller/ProjectTaskHubController.java @@ -128,9 +128,9 @@ public class ProjectTaskHubController { @RequiresPermissions(PermissionConstants.PROJECT_CASE_TASK_CENTER_DELETE) public void batchDeleteTask(@Validated @RequestBody TableBatchProcessDTO request) { List ids = baseTaskHubService.getTaskIds(request, null, SessionUtils.getCurrentProjectId()); - baseTaskHubService.batchDeleteTask(ids, null, SessionUtils.getCurrentProjectId()); baseTaskHubLogService.taskBatchLog(ids, SessionUtils.getUserId(), OperationLogType.DELETE.name(), SessionUtils.getCurrentProjectId(), SessionUtils.getCurrentOrganizationId(), "/project/task-center/exec-task/batch-delete", OperationLogModule.PROJECT_MANAGEMENT_TASK_CENTER); + baseTaskHubService.batchDeleteTask(ids, null, SessionUtils.getCurrentProjectId()); } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationTaskHubController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationTaskHubController.java index ad7cf0ada8..5866868596 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationTaskHubController.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationTaskHubController.java @@ -135,10 +135,10 @@ public class OrganizationTaskHubController { @RequiresPermissions(PermissionConstants.ORGANIZATION_CASE_TASK_CENTER_DELETE) public void batchDeleteTask(@Validated @RequestBody TableBatchProcessDTO request) { List ids = baseTaskHubService.getTaskIds(request, SessionUtils.getCurrentOrganizationId(), null); - baseTaskHubService.batchDeleteTask(ids, SessionUtils.getCurrentOrganizationId(), null); //日志 baseTaskHubLogService.taskBatchLog(ids, SessionUtils.getUserId(), OperationLogType.DELETE.name(), OperationLogConstants.ORGANIZATION, SessionUtils.getCurrentOrganizationId(), "/organization/task-center/exec-task/batch-delete", OperationLogModule.SETTING_ORGANIZATION_TASK_CENTER); + baseTaskHubService.batchDeleteTask(ids, SessionUtils.getCurrentOrganizationId(), null); } @GetMapping("/exec-task/item/stop/{id}") diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemTaskHubController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemTaskHubController.java index 1d89faebe3..c3831b9803 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemTaskHubController.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemTaskHubController.java @@ -134,10 +134,10 @@ public class SystemTaskHubController { @RequiresPermissions(PermissionConstants.SYSTEM_CASE_TASK_CENTER_DELETE) public void batchDeleteTask(@Validated @RequestBody TableBatchProcessDTO request) { List ids = baseTaskHubService.getTaskIds(request, null, null); - baseTaskHubService.batchDeleteTask(ids, SessionUtils.getCurrentOrganizationId(), null); //系統日志 baseTaskHubLogService.taskBatchLog(ids, SessionUtils.getUserId(), OperationLogType.DELETE.name(), OperationLogConstants.SYSTEM, OperationLogConstants.SYSTEM, "/system/task-center/exec-task/batch-delete", OperationLogModule.SETTING_SYSTEM_TASK_CENTER); + baseTaskHubService.batchDeleteTask(ids, SessionUtils.getCurrentOrganizationId(), null); } @PostMapping("/exec-task/batch/page")