创建订单同步修改购物车就餐类型
This commit is contained in:
@@ -843,8 +843,7 @@ public class CartService {
|
|||||||
seatCartInfo = cart;
|
seatCartInfo = cart;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// 设置用餐类型
|
|
||||||
cart.setUseType(shopEatTypeInfoDTO.getUseType());
|
|
||||||
// 设置打包费
|
// 设置打包费
|
||||||
if (shopEatTypeInfoDTO.isTakeout()) {
|
if (shopEatTypeInfoDTO.isTakeout()) {
|
||||||
cart.setTableId("");
|
cart.setTableId("");
|
||||||
@@ -1148,7 +1147,6 @@ public class CartService {
|
|||||||
if (!shopEatTypeInfoDTO.isDineInAfter()) {
|
if (!shopEatTypeInfoDTO.isDineInAfter()) {
|
||||||
cashierCart.setStatus("closed");
|
cashierCart.setStatus("closed");
|
||||||
}
|
}
|
||||||
cashierCart.setUseType(shopEatTypeInfoDTO.getUseType());
|
|
||||||
cashierCart.setPlaceNum(cashierCart.getPlaceNum() == null ? currentPlaceNum : cashierCart.getPlaceNum());
|
cashierCart.setPlaceNum(cashierCart.getPlaceNum() == null ? currentPlaceNum : cashierCart.getPlaceNum());
|
||||||
mpCashierCartMapper.updateById(cashierCart);
|
mpCashierCartMapper.updateById(cashierCart);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user