fix(用例管理): 修复用例评审创建并关联时,用例评审人和默认评审人不同保存结果相同问题

--bug=1036035 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036035
This commit is contained in:
guoyuqi 2024-02-22 16:36:58 +08:00 committed by 刘瑞斌
parent 7c50a78a8d
commit f2e4816c64
2 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,7 @@ public class CaseReviewService {
BaseAssociateCaseRequest baseAssociateCaseRequest = request.getBaseAssociateCaseRequest();
List<String> caseIds = doSelectIds(baseAssociateCaseRequest, baseAssociateCaseRequest.getProjectId());
CaseReview caseReview = addCaseReview(request, userId, caseReviewId, caseIds);
addAssociate(request, userId, caseReviewId, caseIds, request.getReviewers());
addAssociate(request, userId, caseReviewId, caseIds, baseAssociateCaseRequest.getReviewers());
return caseReview;
}

View File

@ -421,6 +421,7 @@ public class ReviewFunctionalCaseControllerTests extends BaseTest {
baseAssociateCaseRequest.setSelectAll(false);
baseAssociateCaseRequest.setProjectId(projectId);
baseAssociateCaseRequest.setSelectIds(caseIds);
baseAssociateCaseRequest.setReviewers(reviewers);
caseReviewRequest.setBaseAssociateCaseRequest(baseAssociateCaseRequest);
List<String> tags = new ArrayList<>();
tags.add("11");