1.下单不打票修复

This commit is contained in:
2024-09-02 10:31:56 +08:00
parent 7be5d2354f
commit 119b6ba9c7

View File

@@ -190,12 +190,14 @@ public class PrintMechineConsumer {
cashierCarts = tbCashierCartMapper.selectByOrderId(orderId,"final");
if (ObjectUtil.isNotEmpty(cashierCarts) && cashierCarts.size() > 0) {
// 取餐号不为空为代客下单
if ("postPay".equals(orderInfo.getUseType())) {
return;
}
cashierCarts.parallelStream().forEach(it -> {
// 取餐号不为空为代客下单
if ("postPay".equals(orderInfo.getUseType()) && StrUtil.isNotBlank(it.getMasterId())) {
return;
}
String categoryId;
if(ObjectUtil.isEmpty(it.getCategoryId())){
categoryId= tbProductMapper.selectByPrimaryKey(Integer.valueOf(it.getProductId())).getCategoryId();