diff --git a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java index 96c342f257..e0ece349bc 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java @@ -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() diff --git a/test-track/backend/src/main/java/io/metersphere/service/issue/platform/TapdPlatform.java b/test-track/backend/src/main/java/io/metersphere/service/issue/platform/TapdPlatform.java index 08a47e80ea..521ed16e87 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/issue/platform/TapdPlatform.java +++ b/test-track/backend/src/main/java/io/metersphere/service/issue/platform/TapdPlatform.java @@ -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); } });