查询店铺信息返回就餐人数
This commit is contained in:
@@ -49,6 +49,9 @@ public class TbShopTable implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private boolean isChoseCount;
|
private boolean isChoseCount;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer seatNum;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ public class ProductService {
|
|||||||
tbShopTable.setOrderId(order == null ? null : order.getId());
|
tbShopTable.setOrderId(order == null ? null : order.getId());
|
||||||
TbCashierCart seatCartInfo = getSeatCartInfo(tbShopTable.getShopId(), tbShopTable.getQrcode(), Integer.valueOf(userId), shopEatTypeInfoDTO);
|
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.setChoseCount((shopInfo.getIsTableFee() != null && shopInfo.getIsTableFee().equals(1)) || (seatCartInfo != null && (seatCartInfo.getNumber() != null)));
|
||||||
|
tbShopTable.setSeatNum(seatCartInfo != null ? seatCartInfo.getNumber() : 0);
|
||||||
}else {
|
}else {
|
||||||
shopEatTypeInfoDTO.setUseType(OrderUseTypeEnum.TAKEOUT.getValue());
|
shopEatTypeInfoDTO.setUseType(OrderUseTypeEnum.TAKEOUT.getValue());
|
||||||
TbOrderInfo order = getCurrentOrder(shopEatTypeInfoDTO, code, shopInfo.getId());
|
TbOrderInfo order = getCurrentOrder(shopEatTypeInfoDTO, code, shopInfo.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user