Skip to content

Commit

Permalink
fix(接口测试): 修复偶发情况下接口用例通知里的操作人显示错误问题
Browse files Browse the repository at this point in the history
--bug=1025003 --user=宋天阳
[接口测试]github#23283我们接口case执行成功,MS每次站内通知是创建人,但实际通知人不是case 创建人。
https://www.tapd.cn/55049933/s/1358112
  • Loading branch information
wxg0103 authored and Somebody-JIAN committed Mar 31, 2023
1 parent fbce1cd commit 367d8fa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ private void sendNotice(ApiDefinitionExecResult result, User user) {
if (user == null && StringUtils.isNotBlank(result.getUserId())) {
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());
Expand Down

0 comments on commit 367d8fa

Please sign in to comment.