fix(测试跟踪): 首页我的评审列表数据有误
--bug=1034023 --user=宋昌昌 【测试跟踪】首页-用例评审-我创建的评审-评审人显示空 https://www.tapd.cn/55049933/s/1551173
This commit is contained in:
parent
b8f40d94bf
commit
c9bff41e3c
|
@ -623,10 +623,10 @@ public class TestCaseReviewService {
|
||||||
testReviews.forEach(testReview -> {
|
testReviews.forEach(testReview -> {
|
||||||
List<CountMapDTO> countMapDTOS = extTestReviewCaseMapper.getStatusMapByReviewId(testReview.getId());
|
List<CountMapDTO> countMapDTOS = extTestReviewCaseMapper.getStatusMapByReviewId(testReview.getId());
|
||||||
|
|
||||||
TestCaseReviewTestCaseUsersExample testCaseReviewTestCaseUsersExample = new TestCaseReviewTestCaseUsersExample();
|
TestCaseReviewUsersExample reviewUserExample = new TestCaseReviewUsersExample();
|
||||||
testCaseReviewTestCaseUsersExample.createCriteria().andReviewIdEqualTo(testReview.getId());
|
reviewUserExample.createCriteria().andReviewIdEqualTo(testReview.getId());
|
||||||
List<String> userIds = testCaseReviewTestCaseUsersMapper.selectByExample(testCaseReviewTestCaseUsersExample).
|
List<String> userIds = testCaseReviewUsersMapper.selectByExample(reviewUserExample).
|
||||||
stream().map(TestCaseReviewTestCaseUsers::getUserId).distinct().collect(Collectors.toList());
|
stream().map(TestCaseReviewUsers::getUserId).distinct().collect(Collectors.toList());
|
||||||
|
|
||||||
String reviewName = getReviewName(userIds, projectId);
|
String reviewName = getReviewName(userIds, projectId);
|
||||||
testReview.setReviewerName(reviewName);
|
testReview.setReviewerName(reviewName);
|
||||||
|
|
Loading…
Reference in New Issue