1.代客下单 打印菜品小票

This commit is contained in:
SongZhang 2024-08-26 13:57:41 +08:00
parent 5d74f104b2
commit 5e6c6284ed
2 changed files with 34 additions and 11 deletions

View File

@ -634,6 +634,10 @@ public class OrderService {
tbOrderInfoMapper.insert(orderInfo);
redisUtil.saveMessage(RedisCst.OUT_NUMBER.concat(orderInfo.getShopId()),object.toString());
orderId = orderInfo.getId();
if (StrUtil.isNotBlank(orderVo.getTableId())) {
producer.printMechine(String.valueOf(orderId));
}
}
for (TbOrderDetail orderDetail : orderDetails) {
orderDetail.setOrderId(orderId);

View File

@ -299,7 +299,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(orderId);
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(orderId);
}
// 修改台桌状态
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
@ -374,7 +376,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(orderId);
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(orderId);
}
// 修改台桌状态
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
@ -458,7 +462,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(orderId);
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(orderId);
}
}
}
}
@ -484,7 +490,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(orderId);
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(orderId);
}
}
}
}
@ -623,7 +631,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(orderId);
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(orderId);
}
// 发送库存记录mq消息
JSONObject mqData = new JSONObject();
@ -736,7 +746,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(orderId);
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(orderId);
}
// 发送库存记录mq消息
JSONObject mqData = new JSONObject();
@ -822,8 +834,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(String.valueOf(orderId));
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(String.valueOf(orderId));
}
// 发送库存记录mq消息
JSONObject mqData = new JSONObject();
@ -901,7 +914,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(orderId);
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(orderId);
}
// 发送库存记录mq消息
JSONObject mqData = new JSONObject();
@ -983,7 +998,9 @@ public class PayService {
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(orderId);
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(orderId);
}
// 发送库存记录mq消息
JSONObject mqData = new JSONObject();
@ -1241,7 +1258,9 @@ public class PayService {
// jsonObject.put("data",new ReturnWTZInfo(orderId+"",newOrderInfo.getPayAmount(),details));
producer.putOrderCollect(jsonObject.toJSONString());
producer.printMechine(String.valueOf(newOrderInfo.getId()));
if (!orderInfo.getPayType().equals("postPay")) {
producer.printMechine(String.valueOf(newOrderInfo.getId()));
}