feat: 添加购物车修改
This commit is contained in:
@@ -422,7 +422,7 @@ public class OrderService {
|
|||||||
if (type.equals("add") || needNew) {
|
if (type.equals("add") || needNew) {
|
||||||
cashierCart = getCashierInfo(shopId, skuId, productId, tableId, masterId, shopEatTypeInfoDTO, cartId);
|
cashierCart = getCashierInfo(shopId, skuId, productId, tableId, masterId, shopEatTypeInfoDTO, cartId);
|
||||||
if (cashierCart != null && !isGroup) {
|
if (cashierCart != null && !isGroup) {
|
||||||
// 校验是否是代客下单往期订单
|
// 校验是否是代客下单往期订单
|
||||||
if (shopEatTypeInfoDTO.isDineInAfter() && cashierCart.getPlaceNum() != null && !isSeatCart) {
|
if (shopEatTypeInfoDTO.isDineInAfter() && cashierCart.getPlaceNum() != null && !isSeatCart) {
|
||||||
return Result.fail("后付费已下单订单仅支持退款");
|
return Result.fail("后付费已下单订单仅支持退款");
|
||||||
}
|
}
|
||||||
@@ -458,6 +458,7 @@ public class OrderService {
|
|||||||
return Result.success(CodeEnum.SUCCESS, masterId);
|
return Result.success(CodeEnum.SUCCESS, masterId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
number = cashierCart.getNumber().add(number);
|
||||||
cashierCart.setNumber(number);
|
cashierCart.setNumber(number);
|
||||||
if (product != null) {
|
if (product != null) {
|
||||||
resetGroupProductCart(groupProductIdList, product, cashierCart);
|
resetGroupProductCart(groupProductIdList, product, cashierCart);
|
||||||
|
|||||||
Reference in New Issue
Block a user