1.代客下单 添加购物车新增单品备注

This commit is contained in:
SongZhang 2024-09-12 14:43:54 +08:00
parent 0f9c370118
commit a40431fbe7
1 changed files with 1 additions and 1 deletions

View File

@ -1037,7 +1037,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
Integer mealNum = null;
if (cashierCarts.stream().noneMatch(item -> item.getPlaceNum() == null)) {
if (addMaterId && cashierCarts.stream().noneMatch(item -> item.getPlaceNum() == null)) {
throw new BadRequestException("此次未添加新商品,清先添加商品");
}
for (TbCashierCart cashierCart : cashierCarts) {