mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix(接口测试): 修复批量配置定时任务会报错的问题
This commit is contained in:
parent
b825aa7a4e
commit
d3603bc0ff
@ -102,7 +102,7 @@ public class ApiScenarioBatchOperationController {
|
|||||||
@PostMapping(value = "/batch-operation/schedule-config")
|
@PostMapping(value = "/batch-operation/schedule-config")
|
||||||
@Operation(summary = "接口测试-接口场景管理-定时任务批量配置")
|
@Operation(summary = "接口测试-接口场景管理-定时任务批量配置")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_EXECUTE)
|
@RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_EXECUTE)
|
||||||
@CheckOwner(resourceId = "#request.getProject()", resourceType = "project")
|
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
||||||
public void scheduleConfig(@Validated @RequestBody ApiScenarioBatchScheduleConfigRequest request) {
|
public void scheduleConfig(@Validated @RequestBody ApiScenarioBatchScheduleConfigRequest request) {
|
||||||
apiValidateService.validateApiMenuInProject(request.getProjectId(), ApiResource.PROJECT.name());
|
apiValidateService.validateApiMenuInProject(request.getProjectId(), ApiResource.PROJECT.name());
|
||||||
apiScenarioService.batchScheduleConfig(request, SessionUtils.getUserId());
|
apiScenarioService.batchScheduleConfig(request, SessionUtils.getUserId());
|
||||||
|
@ -35,8 +35,6 @@ import io.metersphere.system.utils.PageUtils;
|
|||||||
import io.metersphere.system.utils.Pager;
|
import io.metersphere.system.utils.Pager;
|
||||||
import io.metersphere.system.utils.SessionUtils;
|
import io.metersphere.system.utils.SessionUtils;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
@ -79,7 +77,6 @@ public class ApiScenarioController {
|
|||||||
@PostMapping("/statistics")
|
@PostMapping("/statistics")
|
||||||
@Operation(summary = "接口测试-接口场景管理-获取通过率")
|
@Operation(summary = "接口测试-接口场景管理-获取通过率")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_READ)
|
@RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_READ)
|
||||||
@Parameter(name = "ids", description = "场景id集合", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED))
|
|
||||||
public List<ApiScenarioDTO> selectTestPlanMetricById(@RequestBody List<String> ids) {
|
public List<ApiScenarioDTO> selectTestPlanMetricById(@RequestBody List<String> ids) {
|
||||||
return apiScenarioService.calculateRate(ids);
|
return apiScenarioService.calculateRate(ids);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user