From 7bdd2687a009c40ae9d66c851f495900e20b6849 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Tue, 9 Jul 2024 16:28:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=88=86=E9=A1=B5=E9=97=AE=E9=A2=98?= =?UTF-8?q?=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/exam/UserBookController.java | 3 ++- .../com/ruoyi/web/controller/manager/UserBookManager.java | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/UserBookController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/UserBookController.java index 9c6376a..f99bf8d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/UserBookController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/UserBookController.java @@ -5,6 +5,7 @@ import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.userbook.ElUserBook; import com.ruoyi.system.domain.userbook.dto.UserBookDTO; import com.ruoyi.web.controller.manager.UserBookManager; import io.swagger.annotations.Api; @@ -50,7 +51,7 @@ public class UserBookController extends BaseController { @ResponseBody public TableDataInfo list(UserBookDTO reqDTO) { startPage(); - List list = userBookManager.paging(reqDTO); + List list = userBookManager.paging(reqDTO); return getDataTable(list); } 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 4460b92..eb35ccc 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 @@ -82,7 +82,7 @@ public class UserBookManager { } - public List paging(UserBookDTO reqDTO) { + public List paging(UserBookDTO reqDTO) { //查询条件 QueryWrapper wrapper = new QueryWrapper<>(); // 查找用户的错题 @@ -93,8 +93,7 @@ public class UserBookManager { if(Objects.nonNull(reqDTO.getExamId())){ wrapper.lambda().eq(ElUserBook::getExamId, reqDTO.getExamId()); } - List list = userBookService.list(wrapper); - return Convert.toList(UserBookDTO.class, list); + return userBookService.list(wrapper); }