这是因为我查找类型的类,和接收返回的类不一致,导致的;
把列表的类型修改为一样就可以了。
IPage<TbAlliqWeighRecord> iPage = new Page<>(record.getPage(),record.getLimit()); IPage<TbAlliqWeighRecord> page = this.tbAlliqWeighRecordService.page(iPage,wrapper); List<TbAlliqWeighRecord> list = page.getRecords();