新增台桌状态接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user