refactor(接口测试): 修复偶发情况下接口用例通知内执行人显示不对的问题

--bug=1025003 --user=宋天阳
[接口测试]github#23283我们接口case执行成功,MS每次站内通知是创建人,但实际通知人不是case 创建人。
https://www.tapd.cn/55049933/s/1358112
This commit is contained in:
song-tianyang 2023-03-31 13:55:18 +08:00 committed by 建国
parent 05904f3df3
commit 025cbff419
1 changed files with 3 additions and 1 deletions

View File

@ -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());