查询店铺信息返回就餐人数

This commit is contained in:
2024-10-09 15:03:51 +08:00
parent d29866da76
commit 5fda8bf69a
2 changed files with 4 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ public class TbShopTable implements Serializable {
@TableField(exist = false)
private boolean isChoseCount;
@TableField(exist = false)
private Integer seatNum;
}

View File

@@ -154,6 +154,7 @@ public class ProductService {
tbShopTable.setOrderId(order == null ? null : order.getId());
TbCashierCart seatCartInfo = getSeatCartInfo(tbShopTable.getShopId(), tbShopTable.getQrcode(), Integer.valueOf(userId), shopEatTypeInfoDTO);
tbShopTable.setChoseCount((shopInfo.getIsTableFee() != null && shopInfo.getIsTableFee().equals(1)) || (seatCartInfo != null && (seatCartInfo.getNumber() != null)));
tbShopTable.setSeatNum(seatCartInfo != null ? seatCartInfo.getNumber() : 0);
}else {
shopEatTypeInfoDTO.setUseType(OrderUseTypeEnum.TAKEOUT.getValue());
TbOrderInfo order = getCurrentOrder(shopEatTypeInfoDTO, code, shopInfo.getId());