diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index 4500f158d5..26da7f7ef7 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -249,7 +249,7 @@ public class ApiAutomationService { String projectId = request.getProjectId(); Project project = projectMapper.selectByPrimaryKey(projectId); if (project != null) { - Boolean customNum = project.getCustomNum(); + Boolean customNum = project.getScenarioCustomNum(); // 未开启自定义ID if (!customNum) { request.setCustomNum(null);