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")