diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/UserBookManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/UserBookManager.java index eb35ccc..530bce5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/UserBookManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/UserBookManager.java @@ -73,7 +73,7 @@ public class UserBookManager { wrapper.lambda() .eq(ElUserBook::getExamId, examId) .eq(ElUserBook::getUserId, userId); - wrapper.last(" ORDER BY `sort` DESC"); + wrapper.last(" ORDER BY sort DESC"); ElUserBook book = userBookService.getOne(wrapper, false); if(Objects.isNull(book)){ return 0; @@ -110,7 +110,7 @@ public class UserBookManager { .eq(ElUserBook::getUserId, ShiroUtils.getUserId()) .eq(ElUserBook::getExamId, examId) .eq(ElUserBook::getQuId, quId); - wrapper.last(" ORDER BY `sort` DESC"); + wrapper.last(" ORDER BY sort DESC"); ElUserBook last = userBookService.getOne(wrapper, false); if(last!=null){ sort = last.getSort(); @@ -121,7 +121,7 @@ public class UserBookManager { .eq(ElUserBook::getUserId, ShiroUtils.getUserId()) .eq(ElUserBook::getExamId, examId) .lt(ElUserBook::getSort, sort); - wrapper.last(" ORDER BY `sort` DESC"); + wrapper.last(" ORDER BY sort DESC"); ElUserBook next = userBookService.getOne(wrapper, false); if(next != null){ return next.getQuId();