diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/Swagger3ExportParser.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/Swagger3ExportParser.java index 772a017e80..9737359d1d 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/Swagger3ExportParser.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/Swagger3ExportParser.java @@ -160,7 +160,7 @@ public class Swagger3ExportParser implements ExportParser { statusCodeInfo.put("description", responseJSONObject.optString("value")); } if (StringUtils.isNotBlank(responseJSONObject.optString("name"))) { - responseBody.put(responseJSONObject.optString("name"), statusCodeInfo); + responseBody.put(statusCode, statusCodeInfo); } } } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanCollectionAssociateDTO.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanCollectionAssociateDTO.java index c938739e0b..4ab80d33b7 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanCollectionAssociateDTO.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanCollectionAssociateDTO.java @@ -19,7 +19,7 @@ public class TestPlanCollectionAssociateDTO implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "是否选择所有模块") - private boolean selectAllModule; + private boolean selectAllModule = false; @Schema(description = "模块下的id集合属性", requiredMode = Schema.RequiredMode.REQUIRED) private Map moduleMaps; diff --git a/frontend/src/views/api-test/management/components/management/api/apiTable.vue b/frontend/src/views/api-test/management/components/management/api/apiTable.vue index 7bd0749530..e3c91dcaaf 100644 --- a/frontend/src/views/api-test/management/components/management/api/apiTable.vue +++ b/frontend/src/views/api-test/management/components/management/api/apiTable.vue @@ -567,6 +567,7 @@ eventTag: 'exportSwagger', }, ], + permission: ['PROJECT_API_DEFINITION:READ+EXPORT'], }, { label: 'common.edit',