1.代客下单 打印菜品小票
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -299,7 +299,9 @@ public class PayService {
|
||||
|
||||
producer.putOrderCollect(jsonObject.toJSONString());
|
||||
|
||||
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());
|
||||
|
||||
if (!orderInfo.getPayType().equals("postPay")) {
|
||||
producer.printMechine(orderId);
|
||||
}
|
||||
// 修改台桌状态
|
||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
|
||||
@@ -458,10 +462,12 @@ public class PayService {
|
||||
|
||||
producer.putOrderCollect(jsonObject.toJSONString());
|
||||
|
||||
if (!orderInfo.getPayType().equals("postPay")) {
|
||||
producer.printMechine(orderId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
PublicResp<OrderStatusQueryResp> orderstatus = thirdPayService.queryOrder(url, thirdApply.getAppId(), tbOrderPayment.getTradeNumber(), null, thirdApply.getAppToken());
|
||||
if (ObjectUtil.isNotNull(orderstatus) && ObjectUtil.isNotEmpty(orderstatus)) {
|
||||
@@ -484,6 +490,7 @@ public class PayService {
|
||||
|
||||
producer.putOrderCollect(jsonObject.toJSONString());
|
||||
|
||||
if (!orderInfo.getPayType().equals("postPay")) {
|
||||
producer.printMechine(orderId);
|
||||
}
|
||||
}
|
||||
@@ -491,6 +498,7 @@ public class PayService {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Result.success(CodeEnum.SUCCESS, orderInfo);
|
||||
|
||||
@@ -623,7 +631,9 @@ public class PayService {
|
||||
|
||||
producer.putOrderCollect(jsonObject.toJSONString());
|
||||
|
||||
if (!orderInfo.getPayType().equals("postPay")) {
|
||||
producer.printMechine(orderId);
|
||||
}
|
||||
|
||||
// 发送库存记录mq消息
|
||||
JSONObject mqData = new JSONObject();
|
||||
@@ -736,7 +746,9 @@ public class PayService {
|
||||
|
||||
producer.putOrderCollect(jsonObject.toJSONString());
|
||||
|
||||
if (!orderInfo.getPayType().equals("postPay")) {
|
||||
producer.printMechine(orderId);
|
||||
}
|
||||
|
||||
// 发送库存记录mq消息
|
||||
JSONObject mqData = new JSONObject();
|
||||
@@ -822,8 +834,9 @@ public class PayService {
|
||||
|
||||
producer.putOrderCollect(jsonObject.toJSONString());
|
||||
|
||||
|
||||
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());
|
||||
|
||||
|
||||
if (!orderInfo.getPayType().equals("postPay")) {
|
||||
producer.printMechine(orderId);
|
||||
}
|
||||
|
||||
// 发送库存记录mq消息
|
||||
JSONObject mqData = new JSONObject();
|
||||
@@ -983,7 +998,9 @@ public class PayService {
|
||||
|
||||
producer.putOrderCollect(jsonObject.toJSONString());
|
||||
|
||||
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());
|
||||
|
||||
if (!orderInfo.getPayType().equals("postPay")) {
|
||||
producer.printMechine(String.valueOf(newOrderInfo.getId()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user