refactor(用例管理): 用例详情关联缺陷数量测试计划关联的
This commit is contained in:
parent
2c48d8f947
commit
9470dc6027
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue