先付费模式创建订单之后结束购物车状态
This commit is contained in:
@@ -1205,7 +1205,6 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
String orderNo = generateOrderNumber(null);
|
String orderNo = generateOrderNumber(null);
|
||||||
orderInfo = new TbOrderInfo();
|
orderInfo = new TbOrderInfo();
|
||||||
orderInfo.setOrderNo(orderNo);
|
orderInfo.setOrderNo(orderNo);
|
||||||
orderInfo.setUseType(createOrderDTO.isPostPay() ? "postPay" : "afterPay");
|
|
||||||
orderInfo.setAmount(totalAmount);
|
orderInfo.setAmount(totalAmount);
|
||||||
orderInfo.setPayAmount(BigDecimal.ZERO);
|
orderInfo.setPayAmount(BigDecimal.ZERO);
|
||||||
orderInfo.setPackFee(packAMount);
|
orderInfo.setPackFee(packAMount);
|
||||||
@@ -1286,6 +1285,11 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
if (cashierCart.getPlaceNum() == null) {
|
if (cashierCart.getPlaceNum() == null) {
|
||||||
cashierCart.setPlaceNum(placeNum);
|
cashierCart.setPlaceNum(placeNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 先付费模式,结束购物车状态
|
||||||
|
if (shopEatTypeInfoDTO.isDineInBefore()) {
|
||||||
|
cashierCart.setStatus("final");
|
||||||
|
}
|
||||||
cashierCartMapper.updateById(cashierCart);
|
cashierCartMapper.updateById(cashierCart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user