feat: 添加购物车简化修改

This commit is contained in:
张松
2024-12-06 15:01:32 +08:00
parent 2ed56e58ea
commit d6295f5d62

View File

@@ -398,7 +398,7 @@ public class OrderService {
List<TbCashierCart> list = cashierCartMapper.selectALlByMasterId(masterId, "create");
TbCashierCart cashierCart = getCashierInfo(shopId, skuId, productId, tableId, masterId, shopEatTypeInfoDTO);
if (type.equals("add") || cashierCart == null || (cart != null && cart.getGroupType() != null && cart.getGroupType() == 1)) {
if (type.equals("edit") && cashierCart!= null) {
cashierCart = new TbCashierCart();
cashierCart.setUseType(shopEatTypeInfoDTO.getUseType());
if (product != null) {