fix(接口测试): 修复删除报告出现两条记录的缺陷
--bug=1039848 --user=王孝刚 【系统设置】日志-删除接口用例报告-生成了2条日志 https://www.tapd.cn/55049933/s/1504395
This commit is contained in:
parent
8a54962a59
commit
0ae4b87190
|
@ -64,7 +64,7 @@ public class ApiReportController {
|
|||
@Operation(summary = "接口测试-接口报告-用例报告删除")
|
||||
@CheckOwner(resourceId = "#id", resourceType = "api_report")
|
||||
@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)
|
||||
public void delete(@PathVariable String id) {
|
||||
apiReportService.delete(id, SessionUtils.getUserId());
|
||||
|
|
|
@ -64,7 +64,7 @@ public class ApiScenarioReportController {
|
|||
@Operation(summary = "接口测试-接口报告-场景报告删除")
|
||||
@CheckOwner(resourceId = "#id", resourceType = "api_scenario_report")
|
||||
@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)
|
||||
public void delete(@PathVariable String id) {
|
||||
apiScenarioReportService.delete(id, SessionUtils.getUserId());
|
||||
|
|
Loading…
Reference in New Issue