1.代客下单 删除报错fix

This commit is contained in:
2024-09-12 10:22:12 +08:00
parent 242427f1ee
commit 7e29627bf6

View File

@@ -498,7 +498,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
throw new BadRequestException("购物车商品不存在");
}
if (!cashierCart.getPlaceNum().equals(currentPlaceNum)) {
if (cashierCart.getPlaceNum() != null && !cashierCart.getPlaceNum().equals(currentPlaceNum)) {
throw new BadRequestException("已下单商品仅支持退单操作");
}