fix(测试跟踪): 同步缺陷后创建人变了
--bug=1032520 --user=陈建星 【测试跟踪】github#27333,点击同步缺陷,ms上的缺陷创建人变为ms的系统管理员,数据库中creator变为admin。jira侧创建人是实际创建人 https://www.tapd.cn/55049933/s/1435875
This commit is contained in:
parent
b09321a665
commit
d83177ebbf
|
@ -1058,7 +1058,10 @@ public class IssuesService {
|
|||
AttachmentModuleRelationMapper batchAttachmentModuleRelationMapper = sqlSession.getMapper(AttachmentModuleRelationMapper.class);
|
||||
|
||||
// 批量更新
|
||||
updateIssues.forEach(issueBatchMapper::updateByPrimaryKeySelective);
|
||||
updateIssues.forEach(issue -> {
|
||||
issue.setCreator(null);
|
||||
issueBatchMapper.updateByPrimaryKeySelective(issue);
|
||||
});
|
||||
|
||||
// 批量删除
|
||||
syncIssuesResult.getDeleteIssuesIds()
|
||||
|
|
|
@ -226,6 +226,7 @@ public class TapdPlatform extends AbstractIssuePlatform {
|
|||
IssuesDao issuesDao = new IssuesDao();
|
||||
issuesDao.setId(idMap.get(id));
|
||||
issuesDao.setPlatformStatus(IssuesStatus.DELETE.toString());
|
||||
issuesDao.setCreator(null);
|
||||
issuesMapper.updateByPrimaryKeySelective(issuesDao);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue