首页 > 其他分享 >由querywrapper使用不当导致的两个错误

由querywrapper使用不当导致的两个错误

时间:2022-11-30 19:09:30浏览次数:45  
标签:querywrapper 使用不当 错误 queryWrapper pageList invoice new QueryWrapper page

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

相关文章