From 6a8c1788eaa02886b5ecd8863c0222c539d578b1 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Mon, 24 Aug 2020 16:07:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=B7=AF=E5=BE=84=EF=BC=8C=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/io/metersphere/base/domain/Issues.java | 2 ++ .../java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml | 1 + .../main/java/io/metersphere/track/service/TestPlanService.java | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) 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); }