fix(接口测试): 删除场景定时任务报错
--bug=1038851 --user=陈建星 【接口测试】场景-场景列表设置一个场景开启定时任务-再删除该任务提示异常 https://www.tapd.cn/55049933/s/1492021
This commit is contained in:
parent
89a21efd43
commit
5d19b38c61
|
@ -215,7 +215,7 @@ public class ApiScenarioController {
|
||||||
@Operation(summary = "接口测试-接口场景管理-删除定时任务配置")
|
@Operation(summary = "接口测试-接口场景管理-删除定时任务配置")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_EXECUTE)
|
@RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_EXECUTE)
|
||||||
@Log(type = OperationLogType.UPDATE, expression = "#msClass.scheduleLog(#request.getScenarioId())", msClass = ApiScenarioLogService.class)
|
@Log(type = OperationLogType.UPDATE, expression = "#msClass.scheduleLog(#request.getScenarioId())", msClass = ApiScenarioLogService.class)
|
||||||
@CheckOwner(resourceId = "#request.getScenarioId()", resourceType = "api_scenario")
|
@CheckOwner(resourceId = "#scenarioId", resourceType = "api_scenario")
|
||||||
@SendNotice(taskType = NoticeConstants.TaskType.SCHEDULE_TASK, event = NoticeConstants.Event.UPDATE, target = "#targetClass.getScheduleNotice(#request)", targetClass = ApiScenarioNoticeService.class)
|
@SendNotice(taskType = NoticeConstants.TaskType.SCHEDULE_TASK, event = NoticeConstants.Event.UPDATE, target = "#targetClass.getScheduleNotice(#request)", targetClass = ApiScenarioNoticeService.class)
|
||||||
public void deleteScheduleConfig(@PathVariable String scenarioId) {
|
public void deleteScheduleConfig(@PathVariable String scenarioId) {
|
||||||
apiValidateService.validateApiMenuInProject(scenarioId, ApiResource.API_SCENARIO.name());
|
apiValidateService.validateApiMenuInProject(scenarioId, ApiResource.API_SCENARIO.name());
|
||||||
|
|
Loading…
Reference in New Issue