refactor(用例管理): 用例详情关联缺陷数量测试计划关联的

This commit is contained in:
guoyuqi 2024-05-10 15:13:55 +08:00 committed by 刘瑞斌
parent 2c48d8f947
commit 9470dc6027
3 changed files with 7 additions and 2 deletions

View File

@ -390,6 +390,11 @@ public class FunctionalCaseService {
BugRelationCaseExample bugRelationCaseExample = new BugRelationCaseExample();
bugRelationCaseExample.createCriteria().andCaseIdEqualTo(functionalCaseDetailDTO.getId());
functionalCaseDetailDTO.setBugCount((int) bugRelationCaseMapper.countByExample(bugRelationCaseExample));
//获取在测试计划中关联缺陷的数量
bugRelationCaseExample = new BugRelationCaseExample();
bugRelationCaseExample.createCriteria().andTestPlanCaseIdEqualTo(functionalCaseDetailDTO.getId());
long planBugCount = bugRelationCaseMapper.countByExample(bugRelationCaseExample);
functionalCaseDetailDTO.setBugCount(functionalCaseDetailDTO.getBugCount() + (int) planBugCount);
//获取已关联依赖关系数量
FunctionalCaseRelationshipEdgeExample relationshipEdgeExample = new FunctionalCaseRelationshipEdgeExample();
relationshipEdgeExample.createCriteria()

View File

@ -562,7 +562,7 @@
//
function goToPlan(record: BugListItem) {
router.push({
name: TestPlanRouteEnum.TEST_PLAN_INDEX,
name: TestPlanRouteEnum.TEST_PLAN_INDEX_DETAIL,
query: {
...route.query,
id: record.testPlanId,

View File

@ -249,7 +249,7 @@
//
function goToPlan(record: AssociateFunctionalCaseItem) {
router.push({
name: TestPlanRouteEnum.TEST_PLAN_INDEX,
name: TestPlanRouteEnum.TEST_PLAN_INDEX_DETAIL,
query: {
...route.query,
id: record.testPlanId,