fix: 修复台桌购物车数量统计不正确问题

This commit is contained in:
SongZhang 2024-10-25 15:42:42 +08:00
parent 201210202f
commit 34b7c23392
1 changed files with 1 additions and 1 deletions

View File

@ -2221,7 +2221,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
public Object getShopState(Integer shopId, String tableId) {
TbShopTable tbShopTable = mpShopTableService.selectByTableId(tableId, shopId);
if (tbShopTable != null) {
long cartCount = mpCashierCartService.countByTableId(shopId, tableId);
long cartCount = mpCashierCartService.countByTableId(shopId, tableId, OrderStatusEnums.CREATE, OrderStatusEnums.RETURN);
Map<String, Object> map = BeanUtil.beanToMap(tbShopTable, false, false);
map.put("cartCount", cartCount);
return map;