diff --git a/backend/src/main/java/io/metersphere/base/domain/Issues.java b/backend/src/main/java/io/metersphere/base/domain/Issues.java index 48dd833af9..b7dd76ae60 100644 --- a/backend/src/main/java/io/metersphere/base/domain/Issues.java +++ b/backend/src/main/java/io/metersphere/base/domain/Issues.java @@ -26,5 +26,7 @@ public class Issues implements Serializable { private String model; + private String created; + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml index 1b94ec96c5..c795f17d9f 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml @@ -8,5 +8,6 @@ where test_case_issues.issues_id = issues.id and test_case_issues.test_case_id = #{caseId} and issues.platform = #{platform}; + order by test_case_issues.create_time DESC \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index 384af091f4..4dbf4c206a 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -269,7 +269,7 @@ public class TestPlanService { List issue = issuesService.getIssues(testCase.getCaseId()); if (issue.size() > 0) { for (Issues i : issue) { - i.setModel(testCase.getModel()); + i.setModel(testCase.getNodePath()); String des = i.getDescription().replaceAll("

", "").replaceAll("

", ""); i.setDescription(des); }