fix(测试跟踪): 评审用例后用例评审列表状态问题

--bug=1017110 --user=宋昌昌 【测试跟踪】用例评审状态不对 https://www.tapd.cn/55049933/s/1248907
This commit is contained in:
song-cc-rock 2022-09-21 16:37:05 +08:00 committed by f2c-ci-robot[bot]
parent 679110cf59
commit 31368b494e
1 changed files with 8 additions and 10 deletions

View File

@ -394,16 +394,14 @@ public class TestCaseReviewService {
TestCaseReview testCaseReview = new TestCaseReview(); TestCaseReview testCaseReview = new TestCaseReview();
testCaseReview.setId(reviewId); testCaseReview.setId(reviewId);
for (String status : statusList) { if (statusList.contains(TestReviewCaseStatus.Prepare.name())) {
if (StringUtils.equals(status, TestReviewCaseStatus.Prepare.name())) { testCaseReview.setStatus(TestCaseReviewStatus.Underway.name());
testCaseReview.setStatus(TestCaseReviewStatus.Underway.name()); testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview); return;
return; } else if(statusList.contains(TestReviewCaseStatus.UnPass.name())){
} else if (StringUtils.equals(status, TestReviewCaseStatus.UnPass.name())) { testCaseReview.setStatus(TestCaseReviewStatus.Finished.name());
testCaseReview.setStatus(TestCaseReviewStatus.Finished.name()); testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview); return;
return;
}
} }
testCaseReview.setStatus(TestCaseReviewStatus.Completed.name()); testCaseReview.setStatus(TestCaseReviewStatus.Completed.name());
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview); testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);