转桌下单次数
This commit is contained in:
parent
23fb8c879d
commit
fe16a49a2c
|
|
@ -396,6 +396,10 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||
addDTO.setVipPrice(false);
|
||||
ShopInfo shopInfo = shopInfoService.getById(sourceOrder.getShopId());
|
||||
targetOrder = initOrderInfo(addDTO, shopInfo, null);
|
||||
} else {
|
||||
targetOrder.setPlaceNum(targetOrder.getPlaceNum() + 1);
|
||||
//下单次数+1
|
||||
updateChain().set(OrderInfo::getPlaceNum, targetOrder.getPlaceNum() + 1).eq(OrderInfo::getId, targetOrder.getId()).update();
|
||||
}
|
||||
if (CollUtil.isEmpty(param.getDetailIds())) {
|
||||
long count = orderDetailService.queryChain().eq(OrderDetail::getOrderId, sourceOrder.getId()).count();
|
||||
|
|
@ -404,12 +408,14 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||
}
|
||||
orderDetailService.updateChain()
|
||||
.eq(OrderDetail::getOrderId, sourceOrder.getId())
|
||||
.set(OrderDetail::getPlaceNum, targetOrder.getPlaceNum())
|
||||
.set(OrderDetail::getOrderId, targetOrder.getId())
|
||||
.update();
|
||||
} else {
|
||||
orderDetailService.updateChain()
|
||||
.eq(OrderDetail::getOrderId, sourceOrder.getId())
|
||||
.in(OrderDetail::getId, param.getDetailIds())
|
||||
.set(OrderDetail::getPlaceNum, targetOrder.getPlaceNum())
|
||||
.set(OrderDetail::getOrderId, targetOrder.getId())
|
||||
.update();
|
||||
}
|
||||
|
|
@ -684,8 +690,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||
}
|
||||
updateChain.update();
|
||||
// if (!"after-pay".equals(orderInfo.getPayMode())) {
|
||||
//发送打票信息
|
||||
rabbitPublisher.sendOrderPrintMsg(orderInfo.getId().toString());
|
||||
//发送打票信息
|
||||
rabbitPublisher.sendOrderPrintMsg(orderInfo.getId().toString());
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue