From 3e85bed1c0b4c3470ba3754f492ca9c18da3ecd5 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 5 Aug 2022 11:17:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5ms=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E5=B8=A6=E7=94=A8=E4=BE=8B=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=EF=BC=8C=E7=94=A8=E4=BE=8B=E7=9A=84=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E4=BA=BA=E4=B8=8D=E6=98=AF=E5=AF=BC=E5=85=A5=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --bug=1015673 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001015673 --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 2 ++ 1 file changed, 2 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 4ea8bcf962..bbec5c4715 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -992,6 +992,8 @@ public class ApiDefinitionService { for (int i = 0; i < caseList.size(); i++) { ApiTestCaseWithBLOBs apiTestCaseWithBLOBs = caseList.get(i); apiTestCaseWithBLOBs.setApiDefinitionId(apiDefinition.getId()); + apiTestCaseWithBLOBs.setCreateUserId(Objects.requireNonNull(SessionUtils.getUser()).getId()); + apiTestCaseWithBLOBs.setUpdateUserId(Objects.requireNonNull(SessionUtils.getUser()).getId()); if (apiDefinition.getToBeUpdated() != null && !apiTestCaseWithBLOBs.getVersionId().equals("cover")) { apiTestCaseWithBLOBs.setToBeUpdated(true); //TODO:check setting