创建订单同步修改购物车就餐类型

This commit is contained in:
2024-10-10 10:50:24 +08:00
parent d9c8b6f1b6
commit bd676eb78e

View File

@@ -967,7 +967,12 @@ public class CartService {
orderDetails.add(orderDetail);
cart.setStatus(shopEatTypeInfoDTO.isDineInAfter() ? "create" : "final");
cart.setUpdatedAt(DateUtil.current());
cart.setUseType(shopEatTypeInfoDTO.getUseType());
//
if (!TableConstant.CART_SEAT_ID.equals(cart.getProductId()) || !shopEatTypeInfoDTO.isTakeout()) {
cart.setUseType(shopEatTypeInfoDTO.getUseType());
}
if (cart.getId() != null) {
mpCashierCartMapper.updateById(cart);
} else {