初始化状态

This commit is contained in:
2025-05-09 11:15:09 +08:00
parent fc255e5969
commit 1132c2adc6
3 changed files with 38 additions and 10 deletions

View File

@@ -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));
}
}