fix: 修改模块显示路径,时间排序

This commit is contained in:
wenyann 2020-08-24 16:07:23 +08:00
parent cf17e34756
commit 6a8c1788ea
3 changed files with 4 additions and 1 deletions

View File

@ -26,5 +26,7 @@ public class Issues implements Serializable {
private String model; private String model;
private String created;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

View File

@ -8,5 +8,6 @@
where test_case_issues.issues_id = issues.id where test_case_issues.issues_id = issues.id
and test_case_issues.test_case_id = #{caseId} and test_case_issues.test_case_id = #{caseId}
and issues.platform = #{platform}; and issues.platform = #{platform};
order by test_case_issues.create_time DESC
</select> </select>
</mapper> </mapper>

View File

@ -269,7 +269,7 @@ public class TestPlanService {
List<Issues> issue = issuesService.getIssues(testCase.getCaseId()); List<Issues> issue = issuesService.getIssues(testCase.getCaseId());
if (issue.size() > 0) { if (issue.size() > 0) {
for (Issues i : issue) { for (Issues i : issue) {
i.setModel(testCase.getModel()); i.setModel(testCase.getNodePath());
String des = i.getDescription().replaceAll("<p>", "").replaceAll("</p>", ""); String des = i.getDescription().replaceAll("<p>", "").replaceAll("</p>", "");
i.setDescription(des); i.setDescription(des);
} }