refactor(接口测试): 修复偶发情况下接口用例通知内执行人显示不对的问题
--bug=1025003 --user=宋天阳 [接口测试]github#23283我们接口case执行成功,MS每次站内通知是创建人,但实际通知人不是case 创建人。 https://www.tapd.cn/55049933/s/1358112
This commit is contained in:
parent
05904f3df3
commit
025cbff419
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue