初始化状态
This commit is contained in:
@@ -305,6 +305,10 @@ public class ShopTableServiceImpl extends ServiceImpl<ShopTableMapper, ShopTable
|
||||
@Override
|
||||
public Page<ShopTableVO> pageInfo(Long shopId, Integer areaId, String tableCode, String status, String name, Boolean isBind) {
|
||||
PageHelper.startPage(PageUtil.buildPageHelp());
|
||||
return PageUtil.convert(new PageInfo<>(mapper.pageInfo(shopId, areaId, tableCode, status, name, isBind)));
|
||||
List<ShopTableVO> shopTableVOS = mapper.pageInfo(shopId, areaId, tableCode, status, name, isBind);
|
||||
for (ShopTableVO shopTableVO : shopTableVOS) {
|
||||
shopTableVO.setStatusMsg(ShopTableStatusEnum.getMsgByValue(shopTableVO.getStatus()));
|
||||
}
|
||||
return PageUtil.convert(new PageInfo<>(shopTableVOS));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user