fix: 缺陷列表按时间排序
This commit is contained in:
parent
694f712f52
commit
e33ffa6542
|
@ -7,7 +7,7 @@
|
|||
from test_case_issues, issues
|
||||
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
|
||||
and issues.platform = #{platform}
|
||||
order by issues.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
|
@ -272,8 +272,14 @@ public class TestPlanService {
|
|||
i.setModel(testCase.getNodePath());
|
||||
String des = i.getDescription().replaceAll("<p>", "").replaceAll("</p>", "");
|
||||
i.setDescription(des);
|
||||
if (i.getLastmodify() == null || i.getLastmodify() == "") {
|
||||
if (i.getReporter() != null || i.getReporter() != "") {
|
||||
i.setLastmodify(i.getReporter());
|
||||
}
|
||||
}
|
||||
}
|
||||
issues.addAll(issue);
|
||||
Collections.sort(issues, Comparator.comparing(Issues::getCreateTime, (t1, t2) -> t2.compareTo(t1)));
|
||||
}
|
||||
|
||||
components.forEach(component -> {
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="current_owner"
|
||||
prop="lastmodify"
|
||||
:label="$t('test_track.module.current_owner')"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
|
|
Loading…
Reference in New Issue