创建订单同步修改购物车就餐类型
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user