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 77e69de4bc
commit e8d77720e6
2 changed files with 3 additions and 3 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());
}
});
});

View File

@ -668,7 +668,7 @@ export default {
return row.priority;
}
if (field.name === '责任人') {
return row.maintainer;
return row.maintainerName;
}
if (field.name === '用例状态') {
return row.status;