修改购物车修改
This commit is contained in:
parent
4ae309b5c5
commit
79e99e78a5
|
|
@ -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("已下单商品仅支持退单操作");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue