1.代客下单 添加购物车新增单品备注
This commit is contained in:
@@ -1037,7 +1037,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
|
|
||||||
Integer mealNum = null;
|
Integer mealNum = null;
|
||||||
|
|
||||||
if (cashierCarts.stream().noneMatch(item -> item.getPlaceNum() == null)) {
|
if (addMaterId && cashierCarts.stream().noneMatch(item -> item.getPlaceNum() == null)) {
|
||||||
throw new BadRequestException("此次未添加新商品,清先添加商品");
|
throw new BadRequestException("此次未添加新商品,清先添加商品");
|
||||||
}
|
}
|
||||||
for (TbCashierCart cashierCart : cashierCarts) {
|
for (TbCashierCart cashierCart : cashierCarts) {
|
||||||
|
|||||||
Reference in New Issue
Block a user