默认按更新时间排序

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) { public List<APIReportResult> recentTest(QueryAPIReportRequest request) {
request.setRecent(true);
return extApiTestReportMapper.list(request); return extApiTestReportMapper.list(request);
} }

View File

@ -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);
} }

View File

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

View File

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