新增台桌状态接口

This commit is contained in:
2024-10-24 15:20:14 +08:00
parent 743f59d4a3
commit d15b17729c
7 changed files with 70 additions and 1 deletions

View File

@@ -2191,4 +2191,16 @@ public class TbShopTableServiceImpl implements TbShopTableService {
rabbitMsgUtils.updateCons(jsonObject1);
return true;
}
@Override
public Object getShopState(Integer shopId, String tableId) {
TbShopTable tbShopTable = mpShopTableService.selectByTableId(tableId, shopId);
if (tbShopTable != null) {
long cartCount = mpCashierCartService.countByTableId(shopId, tableId);
Map<String, Object> map = BeanUtil.beanToMap(tbShopTable, false, false);
map.put("cartCount", cartCount);
return map;
}
return null;
}
}

View File

@@ -139,4 +139,12 @@ public interface TbShopTableService {
Object choseModel(ChoseModelDTO choseModelDTO);
Object returnOrder(ReturnOrderDTO returnOrderDTO);
/**
* 获取台桌状态
* @param shopId 电偶id
* @param tableId qrcode
* @return
*/
Object getShopState(Integer shopId, String tableId);
}