由于若依框架分页的实现,后端有很多限制因素,具体影响因素参考若依官网的在线文档
(http://doc.ruoyi.vip/),所以就自己写了一个后端实现分页的代码;
public TableDataInfo selectCourseManage(CusCourseManage cusCourseManage,String userId) {
//查询出来的数据
List<CusNewManage> list = cusCourseManageService.selectNewCourseManages(userId,cusCourseManage.getType());
//筛选出符合条件的数据,放入resultList中
List<Map<String, Object>> resultList = new ArrayList<Map<String, Object>>();
if (!list.isEmpty()) {
for (CusNewManage cusNewM : list) {
if (StringUtils.isNotBlank(cusNewM.getCourseManage())) {
CusCourseManage courseManage = cusCourseManageService