1.代客下单 打印菜品小票
This commit is contained in:
@@ -634,6 +634,10 @@ public class OrderService {
|
|||||||
tbOrderInfoMapper.insert(orderInfo);
|
tbOrderInfoMapper.insert(orderInfo);
|
||||||
redisUtil.saveMessage(RedisCst.OUT_NUMBER.concat(orderInfo.getShopId()),object.toString());
|
redisUtil.saveMessage(RedisCst.OUT_NUMBER.concat(orderInfo.getShopId()),object.toString());
|
||||||
orderId = orderInfo.getId();
|
orderId = orderInfo.getId();
|
||||||
|
|
||||||
|
if (StrUtil.isNotBlank(orderVo.getTableId())) {
|
||||||
|
producer.printMechine(String.valueOf(orderId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (TbOrderDetail orderDetail : orderDetails) {
|
for (TbOrderDetail orderDetail : orderDetails) {
|
||||||
orderDetail.setOrderId(orderId);
|
orderDetail.setOrderId(orderId);
|
||||||
|
|||||||
@@ -299,7 +299,9 @@ public class PayService {
|
|||||||
|
|
||||||
producer.putOrderCollect(jsonObject.toJSONString());
|
producer.putOrderCollect(jsonObject.toJSONString());
|
||||||
|
|
||||||
producer.printMechine(orderId);
|
if (!orderInfo.getPayType().equals("postPay")) {
|
||||||
|
producer.printMechine(orderId);
|
||||||
|
}
|
||||||
|
|
||||||
// 修改台桌状态
|
// 修改台桌状态
|
||||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
@@ -374,7 +376,9 @@ public class PayService {
|
|||||||
|
|
||||||
producer.putOrderCollect(jsonObject.toJSONString());
|
producer.putOrderCollect(jsonObject.toJSONString());
|
||||||
|
|
||||||
producer.printMechine(orderId);
|
if (!orderInfo.getPayType().equals("postPay")) {
|
||||||
|
producer.printMechine(orderId);
|
||||||
|
}
|
||||||
// 修改台桌状态
|
// 修改台桌状态
|
||||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
|
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
|
||||||
@@ -458,7 +462,9 @@ public class PayService {
|
|||||||
|
|
||||||
producer.putOrderCollect(jsonObject.toJSONString());
|
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.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.putOrderCollect(jsonObject.toJSONString());
|
||||||
|
|
||||||
producer.printMechine(orderId);
|
if (!orderInfo.getPayType().equals("postPay")) {
|
||||||
|
producer.printMechine(orderId);
|
||||||
|
}
|
||||||
|
|
||||||
// 发送库存记录mq消息
|
// 发送库存记录mq消息
|
||||||
JSONObject mqData = new JSONObject();
|
JSONObject mqData = new JSONObject();
|
||||||
@@ -736,7 +746,9 @@ public class PayService {
|
|||||||
|
|
||||||
producer.putOrderCollect(jsonObject.toJSONString());
|
producer.putOrderCollect(jsonObject.toJSONString());
|
||||||
|
|
||||||
producer.printMechine(orderId);
|
if (!orderInfo.getPayType().equals("postPay")) {
|
||||||
|
producer.printMechine(orderId);
|
||||||
|
}
|
||||||
|
|
||||||
// 发送库存记录mq消息
|
// 发送库存记录mq消息
|
||||||
JSONObject mqData = new JSONObject();
|
JSONObject mqData = new JSONObject();
|
||||||
@@ -822,8 +834,9 @@ public class PayService {
|
|||||||
|
|
||||||
producer.putOrderCollect(jsonObject.toJSONString());
|
producer.putOrderCollect(jsonObject.toJSONString());
|
||||||
|
|
||||||
|
if (!orderInfo.getPayType().equals("postPay")) {
|
||||||
producer.printMechine(String.valueOf(orderId));
|
producer.printMechine(String.valueOf(orderId));
|
||||||
|
}
|
||||||
|
|
||||||
// 发送库存记录mq消息
|
// 发送库存记录mq消息
|
||||||
JSONObject mqData = new JSONObject();
|
JSONObject mqData = new JSONObject();
|
||||||
@@ -901,7 +914,9 @@ public class PayService {
|
|||||||
producer.putOrderCollect(jsonObject.toJSONString());
|
producer.putOrderCollect(jsonObject.toJSONString());
|
||||||
|
|
||||||
|
|
||||||
producer.printMechine(orderId);
|
if (!orderInfo.getPayType().equals("postPay")) {
|
||||||
|
producer.printMechine(orderId);
|
||||||
|
}
|
||||||
|
|
||||||
// 发送库存记录mq消息
|
// 发送库存记录mq消息
|
||||||
JSONObject mqData = new JSONObject();
|
JSONObject mqData = new JSONObject();
|
||||||
@@ -983,7 +998,9 @@ public class PayService {
|
|||||||
|
|
||||||
producer.putOrderCollect(jsonObject.toJSONString());
|
producer.putOrderCollect(jsonObject.toJSONString());
|
||||||
|
|
||||||
producer.printMechine(orderId);
|
if (!orderInfo.getPayType().equals("postPay")) {
|
||||||
|
producer.printMechine(orderId);
|
||||||
|
}
|
||||||
|
|
||||||
// 发送库存记录mq消息
|
// 发送库存记录mq消息
|
||||||
JSONObject mqData = new JSONObject();
|
JSONObject mqData = new JSONObject();
|
||||||
@@ -1241,7 +1258,9 @@ public class PayService {
|
|||||||
// jsonObject.put("data",new ReturnWTZInfo(orderId+"",newOrderInfo.getPayAmount(),details));
|
// jsonObject.put("data",new ReturnWTZInfo(orderId+"",newOrderInfo.getPayAmount(),details));
|
||||||
producer.putOrderCollect(jsonObject.toJSONString());
|
producer.putOrderCollect(jsonObject.toJSONString());
|
||||||
|
|
||||||
producer.printMechine(String.valueOf(newOrderInfo.getId()));
|
if (!orderInfo.getPayType().equals("postPay")) {
|
||||||
|
producer.printMechine(String.valueOf(newOrderInfo.getId()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user