From 6c85bcb3cc1c5adb003bd8c8cbf3d65bdaa22b5f Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Wed, 13 Nov 2024 12:36:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/manager/UserBookManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();