fix(测试跟踪): 批量编辑评审人,会清除其他评审中相同用例的评审人

--bug=1024731 --user=陈建星 【测试跟踪】用例评审-多人评审-全部通过-用例状态仍为评审中 https://www.tapd.cn/55049933/s/1354161
This commit is contained in:
chenjianxing 2023-03-22 11:27:18 +08:00 committed by jianxing
parent c87c8cb205
commit 4f4fb8d8ad
1 changed files with 3 additions and 1 deletions

View File

@ -494,7 +494,9 @@ public class TestReviewTestCaseService {
if (!request.getAppendTag()) { if (!request.getAppendTag()) {
// 如果不是追加则先删除然后批量新增 // 如果不是追加则先删除然后批量新增
example.createCriteria().andCaseIdIn(subList); example.createCriteria()
.andCaseIdIn(subList)
.andReviewIdEqualTo(request.getReviewId());
testCaseReviewTestCaseUsersMapper.deleteByExample(example); testCaseReviewTestCaseUsersMapper.deleteByExample(example);
subList.forEach(caseId -> subList.forEach(caseId ->