QueryWrapper<Invoice> queryWrapper = new QueryWrapper<>(invoice); Page<Invoice> page = new Page<Invoice>(invoice.getPageNo(), invoice.getPageSize()); queryWrapper.orderByDesc("create_time"); IPage<Invoice> pageList = invoiceService.page(page, queryWrapper); log.info("返回结果 pageList::{}",pageList.getRecords()); return Result.ok(pageList);
逆序排序,构造对象为pojo
标签:querywrapper,使用不当,错误,queryWrapper,pageList,invoice,new,QueryWrapper,page From: https://blog.51cto.com/u_12528551/5900171