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.setId(reviewId);
for (String status : statusList) {
if (StringUtils.equals(status, TestReviewCaseStatus.Prepare.name())) {
testCaseReview.setStatus(TestCaseReviewStatus.Underway.name());
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
return;
} else if (StringUtils.equals(status, TestReviewCaseStatus.UnPass.name())) {
testCaseReview.setStatus(TestCaseReviewStatus.Finished.name());
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
return;
}
if (statusList.contains(TestReviewCaseStatus.Prepare.name())) {
testCaseReview.setStatus(TestCaseReviewStatus.Underway.name());
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
return;
} else if(statusList.contains(TestReviewCaseStatus.UnPass.name())){
testCaseReview.setStatus(TestCaseReviewStatus.Finished.name());
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
return;
}
testCaseReview.setStatus(TestCaseReviewStatus.Completed.name());
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);