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