From ef10628eb3a090ac869fc47150e560804faf98ca Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Fri, 31 Mar 2023 13:55:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E5=81=B6=E5=8F=91=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BE=8B=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=86=85=E6=89=A7=E8=A1=8C=E4=BA=BA=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025003 --user=宋天阳 [接口测试]github#23283我们接口case执行成功,MS每次站内通知是创建人,但实际通知人不是case 创建人。 https://www.tapd.cn/55049933/s/1358112 --- .../service/definition/ApiDefinitionExecResultService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionExecResultService.java b/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionExecResultService.java index 5b8937c048..88feaca0b8 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionExecResultService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/definition/ApiDefinitionExecResultService.java @@ -198,7 +198,9 @@ public class ApiDefinitionExecResultService { user = userMapper.selectByPrimaryKey(result.getUserId()); } } - + if (result.getUserId() == null && user != null) { + result.setUserId(user.getId()); + } Map paramMap = new HashMap<>(beanMap); paramMap.put("operator", user != null ? user.getName() : result.getUserId()); paramMap.put("status", result.getStatus());