创建订单修改

This commit is contained in:
2024-10-15 16:46:24 +08:00
parent 7a9b05662b
commit f91b7e25fd

View File

@@ -1129,7 +1129,8 @@ public class CartService {
}
cashierCart.setUpdatedAt(System.currentTimeMillis());
cashierCart.setOrderId(orderId + "");
if (!TableConstant.CART_SEAT_ID.equals(cashierCart.getProductId()) || shopEatTypeInfoDTO.isDineInBefore()) {
if ((!TableConstant.CART_SEAT_ID.equals(cashierCart.getProductId()) && !shopEatTypeInfoDTO.isDineInAfter())
|| shopEatTypeInfoDTO.isDineInBefore()) {
cashierCart.setStatus("closed");
}
cashierCart.setPlaceNum(cashierCart.getPlaceNum() == null ? currentPlaceNum : cashierCart.getPlaceNum());