fix(测试跟踪): 测试跟踪首页用例评审数量值有误
--bug=1014279 --user=宋昌昌 【测试跟踪】首页用例评审用例状态多次修改后,数量显示不正确 https://www.tapd.cn/55049933/s/1188537
This commit is contained in:
parent
cd0d91c661
commit
4cdfa90c30
|
@ -100,7 +100,7 @@
|
|||
test_case_review_test_case.update_time, test_case_review_test_case.review_id as reviewId,
|
||||
test_case.id as caseId, test_case.name, test_case.priority, test_case.test_id as testId,
|
||||
test_case.type, test_case.node_path, test_case.method, if(pa.type_value = 'false', cast(test_case.num as char),
|
||||
test_case.custom_num) as customNum, test_case.review_status,
|
||||
test_case.custom_num) as customNum, test_case_review_test_case.status reviewStatus,
|
||||
test_case.remark as remark, test_case.maintainer, test_case.steps as steps, test_case.node_id as nodeId,
|
||||
test_case_node.name as model,
|
||||
project.name as projectName,
|
||||
|
|
|
@ -221,13 +221,18 @@ public class TestReviewTestCaseService {
|
|||
checkReviewCase(request.getReviewId());
|
||||
}
|
||||
|
||||
// 更新状态
|
||||
// 更新状态{TestCase, TestCaseReviewTestCase}
|
||||
if (StringUtils.isNotBlank(request.getStatus())) {
|
||||
TestCaseExample example = new TestCaseExample();
|
||||
example.createCriteria().andIdIn(ids);
|
||||
TestCaseWithBLOBs testCase = new TestCaseWithBLOBs();
|
||||
testCase.setReviewStatus(request.getStatus());
|
||||
testCaseMapper.updateByExampleSelective(testCase, example);
|
||||
TestCaseReviewTestCaseExample caseReviewTestCaseExample = new TestCaseReviewTestCaseExample();
|
||||
caseReviewTestCaseExample.createCriteria().andReviewIdEqualTo(request.getReviewId()).andCaseIdIn(ids);
|
||||
TestCaseReviewTestCase testCaseReviewTestCase = new TestCaseReviewTestCase();
|
||||
testCaseReviewTestCase.setStatus(request.getStatus());
|
||||
testCaseReviewTestCaseMapper.updateByExampleSelective(testCaseReviewTestCase, caseReviewTestCaseExample);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue