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

QueryWrapper queryWrapper = new QueryWrapper<>(invoice);
Page page = new Page(invoice.getPageNo(), invoice.getPageSize());
queryWrapper.orderByDesc("create_time");
IPage pageList = invoiceService.page(page, queryWrapper);
log.info("返回结果  pageList::{}",pageList.getRecords());
return Result.ok(pageList);

逆序排序,构造对象为pojo

你可能感兴趣的:(工作总结)