fix(用例管理): 追加评审人问题处理
This commit is contained in:
parent
7c0e34dbce
commit
5551cbde21
|
@ -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());
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue