fix(任务中心): 批量删除日志
--bug=1048241 --user=王旭 【任务中心】即时任务列表-批量删除-未生成系统日志 https://www.tapd.cn/55049933/s/1599599
This commit is contained in:
parent
4a2b8ccafc
commit
5afff93914
|
@ -128,9 +128,9 @@ public class ProjectTaskHubController {
|
|||
@RequiresPermissions(PermissionConstants.PROJECT_CASE_TASK_CENTER_DELETE)
|
||||
public void batchDeleteTask(@Validated @RequestBody TableBatchProcessDTO request) {
|
||||
List<String> 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());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -135,10 +135,10 @@ public class OrganizationTaskHubController {
|
|||
@RequiresPermissions(PermissionConstants.ORGANIZATION_CASE_TASK_CENTER_DELETE)
|
||||
public void batchDeleteTask(@Validated @RequestBody TableBatchProcessDTO request) {
|
||||
List<String> 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}")
|
||||
|
|
|
@ -134,10 +134,10 @@ public class SystemTaskHubController {
|
|||
@RequiresPermissions(PermissionConstants.SYSTEM_CASE_TASK_CENTER_DELETE)
|
||||
public void batchDeleteTask(@Validated @RequestBody TableBatchProcessDTO request) {
|
||||
List<String> 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")
|
||||
|
|
Loading…
Reference in New Issue