修改购物车修改

This commit is contained in:
SongZhang 2024-09-29 11:40:31 +08:00
parent 4ae309b5c5
commit 79e99e78a5
1 changed files with 1 additions and 5 deletions

View File

@ -343,11 +343,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
if (tbCashierCart == null) {
throw new BadRequestException("购物车商品不存在");
}
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(updateCartDTO.getShopId(), String.valueOf(tbCashierCart.getTableId()));
int currentPlaceNum = getCurrentPlaceNum(shopEatTypeInfoDTO);
if (tbCashierCart.getPlaceNum() != null && !tbCashierCart.getPlaceNum().equals(currentPlaceNum)) {
if (tbCashierCart.getPlaceNum() != null) {
throw new BadRequestException("已下单商品仅支持退单操作");
}