打印样式修改
This commit is contained in:
@@ -102,16 +102,17 @@ public class PrintConsumer {
|
|||||||
Boolean isReturn = jsonObject.getBoolean("isReturn");
|
Boolean isReturn = jsonObject.getBoolean("isReturn");
|
||||||
|
|
||||||
TbOrderInfo orderInfo = tbOrderInfoMapper.selectByPrimaryKey(orderId);
|
TbOrderInfo orderInfo = tbOrderInfoMapper.selectByPrimaryKey(orderId);
|
||||||
log.info("orderInfo-before: {}", JSON.toJSONString(orderInfo));
|
log.error("orderInfo-before: {}", JSON.toJSONString(orderInfo));
|
||||||
ThreadUtil.safeSleep(1000*3);
|
ThreadUtil.safeSleep(1000*3);
|
||||||
log.info("orderInfo-after: {}", JSON.toJSONString(orderInfo));
|
TbOrderInfo newOrderInfo = tbOrderInfoMapper.selectByPrimaryKey(orderId);
|
||||||
|
log.error("orderInfo-after: {}", JSON.toJSONString(orderInfo));
|
||||||
Utils.checkValueUnReturn(orderInfo, "订单信息不存在");
|
Utils.checkValueUnReturn(orderInfo, "订单信息不存在");
|
||||||
TbShopInfo shopInfo = tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(orderInfo.getShopId()));
|
TbShopInfo shopInfo = tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(orderInfo.getShopId()));
|
||||||
Utils.checkValueUnReturn(shopInfo, "店铺信息不存在");
|
Utils.checkValueUnReturn(shopInfo, "店铺信息不存在");
|
||||||
|
|
||||||
getPrintMachine(shopInfo.getId(), "cash", "normal", null).forEach(machine -> {
|
getPrintMachine(shopInfo.getId(), "cash", "normal", null).forEach(machine -> {
|
||||||
List<TbOrderDetail> tbOrderDetails = tbOrderDetailMapper.selectAllByOrderId(orderInfo.getId());
|
List<TbOrderDetail> tbOrderDetails = tbOrderDetailMapper.selectAllByOrderId(newOrderInfo.getId());
|
||||||
printerHandler.handleRequest(machine, isReturn, orderInfo, tbOrderDetails, null);
|
printerHandler.handleRequest(machine, isReturn, newOrderInfo, tbOrderDetails, null);
|
||||||
// printPlaceTicket(isReturn, machine, orderInfo, shopInfo);
|
// printPlaceTicket(isReturn, machine, orderInfo, shopInfo);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user