创建订单结束订单状态
This commit is contained in:
@@ -783,6 +783,11 @@ public class OrderService {
|
||||
cashierCart.setPlaceNum(currentPlaceNum);
|
||||
}
|
||||
|
||||
// 先付费模式,结束购物车状态
|
||||
if (eatTypeInfoDTO.isDineInBefore() || eatTypeInfoDTO.isTakeout()) {
|
||||
cashierCart.setStatus("final");
|
||||
}
|
||||
|
||||
TbOrderDetail orderDetail = null;
|
||||
if (StrUtil.isNotBlank(cashierCart.getOrderId())) {
|
||||
orderDetail = oldOrderDetailMap.get(cashierCart.getOrderId() + cashierCart.getId());
|
||||
|
||||
@@ -338,6 +338,7 @@ public class PayService {
|
||||
orderInfo.setStatus("paying");
|
||||
orderInfo.setPayOrderNo(payment.getTradeNumber());
|
||||
tbOrderInfoMapper.updateByPrimaryKeySelective(orderInfo);
|
||||
int cartCount = tbCashierCartMapper.updateByOrderId(orderId, "final");
|
||||
|
||||
payment.setUpdatedAt(System.currentTimeMillis());
|
||||
tbOrderPaymentMapper.updateByPrimaryKeySelective(payment);
|
||||
@@ -429,6 +430,7 @@ public class PayService {
|
||||
orderInfo.setStatus("paying");
|
||||
orderInfo.setPayOrderNo(payment.getTradeNumber());
|
||||
tbOrderInfoMapper.updateByPrimaryKeySelective(orderInfo);
|
||||
int cartCount = tbCashierCartMapper.updateByOrderId(orderId, "final");
|
||||
|
||||
|
||||
payment.setUpdatedAt(System.currentTimeMillis());
|
||||
|
||||
Reference in New Issue
Block a user