食堂erp修复
This commit is contained in:
1 parent
4094db8934
commit
503cf757da
1 file changed
+5
-1
+5
-1
@@ -151,7 +151,11 @@ public class CanteenSpuServiceImpl extends ServiceImpl<CanteenSpuMapper, Canteen
|
||||
List<CanteenSpuSimpleVO> canteenSpuSimpleVOList = BeanUtils.toBean(pageData.getRecords(), CanteenSpuSimpleVO.class);
|
||||
Page<CanteenSpuSimpleVO> canteenSpuSimpleVOPage = new Page<>();
|
||||
canteenSpuSimpleVOPage.setRecords(canteenSpuSimpleVOList);
|
||||
org.springframework.beans.BeanUtils.copyProperties(pageData, pageData, "records"); // 复制分页参数
|
||||
pageData.setCurrent(pageData.getCurrent());
|
||||
canteenSpuSimpleVOPage.setPages(pageData.getPages());
|
||||
canteenSpuSimpleVOPage.setSize(pageData.getSize());
|
||||
canteenSpuSimpleVOPage.setTotal(pageData.getTotal());
|
||||
// 复制分页参数
|
||||
return canteenSpuSimpleVOPage;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user