外带不校验餐位费
This commit is contained in:
parent
00f15ef7ee
commit
1c04a44278
|
|
@ -1078,7 +1078,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
|
||||
List<TbCashierCart> cashierCarts = cashierCartMapper
|
||||
.selectList(queryWrapper);
|
||||
if (cashierCarts.isEmpty() || (shopEatTypeInfoDTO.isNeedSeatFee() && cashierCarts.size() < 2)) {
|
||||
if (cashierCarts.isEmpty() || (shopEatTypeInfoDTO.isNeedSeatFee() && !shopEatTypeInfoDTO.isTakeout() && cashierCarts.size() < 2)) {
|
||||
throw new BadRequestException("购物车为空或未选择餐位费,请先添加商品或选择餐位费");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue