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

This commit is contained in:
2024-10-10 10:53:47 +08:00
parent bd676eb78e
commit 6fb186f1d5

View File

@@ -968,8 +968,7 @@ public class CartService {
cart.setStatus(shopEatTypeInfoDTO.isDineInAfter() ? "create" : "final");
cart.setUpdatedAt(DateUtil.current());
//
if (!TableConstant.CART_SEAT_ID.equals(cart.getProductId()) || !shopEatTypeInfoDTO.isTakeout()) {
if (!TableConstant.CART_SEAT_ID.equals(cart.getProductId()) || !shopEatTypeInfoDTO.getUseType().equals(OrderUseTypeEnum.TAKEOUT.getValue())) {
cart.setUseType(shopEatTypeInfoDTO.getUseType());
}