默认按更新时间排序
This commit is contained in:
parent
599774ef0a
commit
82b4d1ac6f
|
@ -34,7 +34,6 @@ public class APIReportService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<APIReportResult> recentTest(QueryAPIReportRequest request) {
|
public List<APIReportResult> recentTest(QueryAPIReportRequest request) {
|
||||||
request.setRecent(true);
|
|
||||||
return extApiTestReportMapper.list(request);
|
return extApiTestReportMapper.list(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ public class APITestService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<APITestResult> recentTest(QueryAPITestRequest request) {
|
public List<APITestResult> recentTest(QueryAPITestRequest request) {
|
||||||
request.setRecent(true);
|
|
||||||
return extApiTestMapper.list(request);
|
return extApiTestMapper.list(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,7 @@
|
||||||
AND api_test.id = #{request.id}
|
AND api_test.id = #{request.id}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
<if test="request.recent">
|
|
||||||
order by api_test.update_time desc
|
order by api_test.update_time desc
|
||||||
</if>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
|
@ -25,9 +25,7 @@
|
||||||
AND project.workspace_id = #{request.workspaceId,jdbcType=VARCHAR}
|
AND project.workspace_id = #{request.workspaceId,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
<if test="request.recent">
|
|
||||||
ORDER BY r.update_time DESC
|
ORDER BY r.update_time DESC
|
||||||
</if>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="listByTestId" resultMap="BaseResultMap">
|
<select id="listByTestId" resultMap="BaseResultMap">
|
||||||
|
|
Loading…
Reference in New Issue