fix: 修复台桌购物车数量统计不正确问题
This commit is contained in:
parent
201210202f
commit
34b7c23392
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue