fix(测试跟踪): 评审用例后用例评审列表状态问题
--bug=1017110 --user=宋昌昌 【测试跟踪】用例评审状态不对 https://www.tapd.cn/55049933/s/1248907
This commit is contained in:
parent
679110cf59
commit
31368b494e
|
@ -394,17 +394,15 @@ public class TestCaseReviewService {
|
|||
TestCaseReview testCaseReview = new TestCaseReview();
|
||||
testCaseReview.setId(reviewId);
|
||||
|
||||
for (String status : statusList) {
|
||||
if (StringUtils.equals(status, TestReviewCaseStatus.Prepare.name())) {
|
||||
if (statusList.contains(TestReviewCaseStatus.Prepare.name())) {
|
||||
testCaseReview.setStatus(TestCaseReviewStatus.Underway.name());
|
||||
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
|
||||
return;
|
||||
} else if (StringUtils.equals(status, TestReviewCaseStatus.UnPass.name())) {
|
||||
} else if(statusList.contains(TestReviewCaseStatus.UnPass.name())){
|
||||
testCaseReview.setStatus(TestCaseReviewStatus.Finished.name());
|
||||
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
|
||||
return;
|
||||
}
|
||||
}
|
||||
testCaseReview.setStatus(TestCaseReviewStatus.Completed.name());
|
||||
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
|
||||
SaveTestCaseReviewRequest testCaseReviewRequest = new SaveTestCaseReviewRequest();
|
||||
|
|
Loading…
Reference in New Issue