feat:分页问题修改

pg_adapter
wangxy 9 months ago
parent ee73a6a096
commit 7bdd2687a0

@ -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<UserBookDTO> list = userBookManager.paging(reqDTO);
List<ElUserBook> list = userBookManager.paging(reqDTO);
return getDataTable(list);
}

@ -82,7 +82,7 @@ public class UserBookManager {
}
public List<UserBookDTO> paging(UserBookDTO reqDTO) {
public List<ElUserBook> paging(UserBookDTO reqDTO) {
//查询条件
QueryWrapper<ElUserBook> wrapper = new QueryWrapper<>();
// 查找用户的错题
@ -93,8 +93,7 @@ public class UserBookManager {
if(Objects.nonNull(reqDTO.getExamId())){
wrapper.lambda().eq(ElUserBook::getExamId, reqDTO.getExamId());
}
List<ElUserBook> list = userBookService.list(wrapper);
return Convert.toList(UserBookDTO.class, list);
return userBookService.list(wrapper);
}

Loading…
Cancel
Save