fix(测试跟踪): 首页测试跟踪用例评审多次,数量显示不正确

--bug=1014279 --user=宋昌昌 【测试跟踪】首页用例评审用例状态多次修改后,数量显示不正确 https://www.tapd.cn/55049933/s/1187955
This commit is contained in:
song-cc-rock 2022-06-21 17:54:57 +08:00 committed by f2c-ci-robot[bot]
parent ad9ac6c4c6
commit 2625b877cc
1 changed files with 2 additions and 2 deletions

View File

@ -471,10 +471,10 @@ public class TestCaseReviewService {
countMapDTOS.forEach(item -> {
testReview.setTotal(testReview.getTotal() + item.getValue());
if (!StringUtils.equals(item.getKey(), TestReviewCaseStatus.Prepare.name())) {
testReview.setReviewed(testReview.getReviewed() + 1);
testReview.setReviewed(testReview.getReviewed() + item.getValue());
}
if (StringUtils.equals(item.getKey(), TestReviewCaseStatus.Pass.name())) {
testReview.setPass(testReview.getPass() + 1);
testReview.setPass(testReview.getPass() + item.getValue());
}
});
});