Browse Source

修复考试查询API接口未按ID倒序查询的bug

luoshi 6 years ago
parent
commit
ec10a73242

+ 1 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/api/controller/ExamInfoController.java

@@ -62,6 +62,7 @@ public class ExamInfoController extends BaseApiController {
             if (query.getPageSize() < 1) {
                 query.setPageSize(20);
             }
+            query.orderByIdDesc();
             query = examService.findByQuery(query);
             for (Exam exam : query.getResult()) {
                 JSONObject obj = new JSONObject();