默认按更新时间排序

This commit is contained in:
q4speed 2020-05-12 11:21:43 +08:00
parent 599774ef0a
commit 82b4d1ac6f
4 changed files with 2 additions and 8 deletions

View File

@ -34,7 +34,6 @@ public class APIReportService {
}
public List<APIReportResult> recentTest(QueryAPIReportRequest request) {
request.setRecent(true);
return extApiTestReportMapper.list(request);
}

View File

@ -45,7 +45,6 @@ public class APITestService {
}
public List<APITestResult> recentTest(QueryAPITestRequest request) {
request.setRecent(true);
return extApiTestMapper.list(request);
}

View File

@ -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>

View File

@ -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">