From 2bda25e0a9b2f4e00815a7654185f3d283497250 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 12 Jul 2022 13:51:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E5=AF=BC=E5=85=A5=E5=A6=82=E6=9E=9C=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E7=8A=B6=E6=80=81=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --bug=1014775 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014775 --- .../io/metersphere/api/service/ApiDefinitionService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 85656ce75c..484d402252 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -859,6 +859,12 @@ public class ApiDefinitionService { apiTestCaseWithBLOBs.setId(UUID.randomUUID().toString()); apiTestCaseMapper.insert(apiTestCaseWithBLOBs); } + if (StringUtils.isBlank(apiTestCaseWithBLOBs.getStatus())) { + apiTestCaseWithBLOBs.setStatus(APITestStatus.Underway.name()); + } + if (apiTestCaseWithBLOBs.getOrder() == null) { + apiTestCaseWithBLOBs.setOrder(getImportNextCaseOrder(apiDefinition.getProjectId())); + } } }