限制台桌选择人数
This commit is contained in:
@@ -314,6 +314,13 @@ public class CartService {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isSeatCart) {
|
||||||
|
TbShopTable shopTable = shopTableMapper.selectQRcode(tableId);
|
||||||
|
if (cashierCart.getTotalNumber() > shopTable.getMaxCapacity()) {
|
||||||
|
return Result.fail("当前台桌最大人数未: " + shopTable.getMaxCapacity());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (cashierCart.getNumber() > 0) {
|
if (cashierCart.getNumber() > 0) {
|
||||||
// 设置备注
|
// 设置备注
|
||||||
cashierCart.setNote(note);
|
cashierCart.setNote(note);
|
||||||
|
|||||||
Reference in New Issue
Block a user