创建订单同步修改购物车就餐类型
This commit is contained in:
@@ -968,8 +968,7 @@ public class CartService {
|
|||||||
cart.setStatus(shopEatTypeInfoDTO.isDineInAfter() ? "create" : "final");
|
cart.setStatus(shopEatTypeInfoDTO.isDineInAfter() ? "create" : "final");
|
||||||
cart.setUpdatedAt(DateUtil.current());
|
cart.setUpdatedAt(DateUtil.current());
|
||||||
|
|
||||||
//
|
if (!TableConstant.CART_SEAT_ID.equals(cart.getProductId()) || !shopEatTypeInfoDTO.getUseType().equals(OrderUseTypeEnum.TAKEOUT.getValue())) {
|
||||||
if (!TableConstant.CART_SEAT_ID.equals(cart.getProductId()) || !shopEatTypeInfoDTO.isTakeout()) {
|
|
||||||
cart.setUseType(shopEatTypeInfoDTO.getUseType());
|
cart.setUseType(shopEatTypeInfoDTO.getUseType());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user