fix(用例管理): 修复用例评审人评审不通过后再次通过状态不对问题
--bug=1035884 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001035884
This commit is contained in:
parent
c9beff141a
commit
ec7b0a6906
|
@ -76,6 +76,7 @@ public class ReviewFunctionalCaseService {
|
||||||
if (!users.contains(userId)) {
|
if (!users.contains(userId)) {
|
||||||
throw new MSException(Translator.get("case_review_user"));
|
throw new MSException(Translator.get("case_review_user"));
|
||||||
}
|
}
|
||||||
|
|
||||||
CaseReviewHistory caseReviewHistory = buildReviewHistory(request, userId);
|
CaseReviewHistory caseReviewHistory = buildReviewHistory(request, userId);
|
||||||
CaseReviewHistoryExample caseReviewHistoryExample = new CaseReviewHistoryExample();
|
CaseReviewHistoryExample caseReviewHistoryExample = new CaseReviewHistoryExample();
|
||||||
caseReviewHistoryExample.createCriteria().andCaseIdEqualTo(request.getCaseId()).andReviewIdEqualTo(request.getReviewId()).andDeletedEqualTo(false).andAbandonedEqualTo(false);
|
caseReviewHistoryExample.createCriteria().andCaseIdEqualTo(request.getCaseId()).andReviewIdEqualTo(request.getReviewId()).andDeletedEqualTo(false).andAbandonedEqualTo(false);
|
||||||
|
@ -85,6 +86,8 @@ public class ReviewFunctionalCaseService {
|
||||||
List<CaseReviewHistory> caseReviewHistoryList = new ArrayList<>();
|
List<CaseReviewHistory> caseReviewHistoryList = new ArrayList<>();
|
||||||
caseReviewHistoryList.add(caseReviewHistory);
|
caseReviewHistoryList.add(caseReviewHistory);
|
||||||
hasReviewedUserMap.put(userId, caseReviewHistoryList);
|
hasReviewedUserMap.put(userId, caseReviewHistoryList);
|
||||||
|
} else {
|
||||||
|
hasReviewedUserMap.get(userId).add(caseReviewHistory);
|
||||||
}
|
}
|
||||||
//根据评审规则更新用例评审和功能用例关系表中的状态 1.单人评审直接更新评审结果 2.多人评审需要计算
|
//根据评审规则更新用例评审和功能用例关系表中的状态 1.单人评审直接更新评审结果 2.多人评审需要计算
|
||||||
String functionalCaseStatus = getFunctionalCaseStatus(request, hasReviewedUserMap, isAdmin, caseReviewFunctionalCaseUsers.size());
|
String functionalCaseStatus = getFunctionalCaseStatus(request, hasReviewedUserMap, isAdmin, caseReviewFunctionalCaseUsers.size());
|
||||||
|
|
Loading…
Reference in New Issue