fix(测试跟踪): 评审用例后用例评审列表状态问题
--bug=1017110 --user=宋昌昌 【测试跟踪】用例评审状态不对 https://www.tapd.cn/55049933/s/1248907
This commit is contained in:
parent
679110cf59
commit
31368b494e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue