fix(用例管理): 追加评审人问题处理

This commit is contained in:
WangXu10 2024-01-29 16:53:21 +08:00 committed by 刘瑞斌
parent 7c0e34dbce
commit 5551cbde21
2 changed files with 8 additions and 1 deletions

View File

@ -568,7 +568,9 @@ public class CaseReviewFunctionalCaseService {
list.add(caseUser); list.add(caseUser);
}); });
}); });
caseReviewFunctionalCaseUserMapper.batchInsert(list); if (CollectionUtils.isNotEmpty(list)) {
caseReviewFunctionalCaseUserMapper.batchInsert(list);
}
} else { } else {
//更新评审人 //更新评审人
extCaseReviewFunctionalCaseUserMapper.deleteByCaseIds(caseIds, request.getReviewId()); extCaseReviewFunctionalCaseUserMapper.deleteByCaseIds(caseIds, request.getReviewId());

View File

@ -369,6 +369,11 @@ public class CaseReviewFunctionalCaseControllerTests extends BaseTest {
request.setReviewerId(List.of("wx11")); request.setReviewerId(List.of("wx11"));
request.setSelectIds(List.of("wx_test_10")); request.setSelectIds(List.of("wx_test_10"));
this.requestPostWithOkAndReturn(BATCH_EDIT_REVIEWERS, request); this.requestPostWithOkAndReturn(BATCH_EDIT_REVIEWERS, request);
//覆盖率
request.setReviewId("wx_review_id_4");
request.setReviewerId(List.of("wx11"));
request.setSelectIds(List.of("wx_test_10"));
this.requestPostWithOkAndReturn(BATCH_EDIT_REVIEWERS, request);
} }
@Test @Test