fix(接口测试): 修复删除报告出现两条记录的缺陷

--bug=1039848 --user=王孝刚 【系统设置】日志-删除接口用例报告-生成了2条日志
https://www.tapd.cn/55049933/s/1504395
This commit is contained in:
wxg0103 2024-04-22 13:49:39 +08:00 committed by 刘瑞斌
parent 8a54962a59
commit 0ae4b87190
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public class ApiReportController {
@Operation(summary = "接口测试-接口报告-用例报告删除") @Operation(summary = "接口测试-接口报告-用例报告删除")
@CheckOwner(resourceId = "#id", resourceType = "api_report") @CheckOwner(resourceId = "#id", resourceType = "api_report")
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_DELETE) @RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_DELETE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.deleteLog(#id)", msClass = ApiReportLogService.class) @Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = ApiReportLogService.class)
@SendNotice(taskType = NoticeConstants.TaskType.API_REPORT_TASK, event = NoticeConstants.Event.DELETE, target = "#targetClass.getDto(#id)", targetClass = ApiReportNoticeService.class) @SendNotice(taskType = NoticeConstants.TaskType.API_REPORT_TASK, event = NoticeConstants.Event.DELETE, target = "#targetClass.getDto(#id)", targetClass = ApiReportNoticeService.class)
public void delete(@PathVariable String id) { public void delete(@PathVariable String id) {
apiReportService.delete(id, SessionUtils.getUserId()); apiReportService.delete(id, SessionUtils.getUserId());

View File

@ -64,7 +64,7 @@ public class ApiScenarioReportController {
@Operation(summary = "接口测试-接口报告-场景报告删除") @Operation(summary = "接口测试-接口报告-场景报告删除")
@CheckOwner(resourceId = "#id", resourceType = "api_scenario_report") @CheckOwner(resourceId = "#id", resourceType = "api_scenario_report")
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_DELETE) @RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_DELETE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.deleteLog(#id)", msClass = ApiScenarioReportLogService.class) @Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#id)", msClass = ApiScenarioReportLogService.class)
@SendNotice(taskType = NoticeConstants.TaskType.API_REPORT_TASK, event = NoticeConstants.Event.DELETE, target = "#targetClass.getDto(#id)", targetClass = ApiScenarioReportNoticeService.class) @SendNotice(taskType = NoticeConstants.TaskType.API_REPORT_TASK, event = NoticeConstants.Event.DELETE, target = "#targetClass.getDto(#id)", targetClass = ApiScenarioReportNoticeService.class)
public void delete(@PathVariable String id) { public void delete(@PathVariable String id) {
apiScenarioReportService.delete(id, SessionUtils.getUserId()); apiScenarioReportService.delete(id, SessionUtils.getUserId());