店铺管理-店铺配置:打印机设置相关接口

This commit is contained in:
谭凯凯 2024-10-16 16:25:59 +08:00 committed by Tankaikai
parent 2fb0664446
commit 811fff8644
1 changed files with 5 additions and 0 deletions

View File

@ -1,7 +1,9 @@
package com.chaozhanggui.system.cashierservice.rabbit;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
@ -100,6 +102,9 @@ public class PrintConsumer {
Boolean isReturn = jsonObject.getBoolean("isReturn");
TbOrderInfo orderInfo = tbOrderInfoMapper.selectByPrimaryKey(orderId);
log.info("orderInfo-before: {}", JSON.toJSONString(orderInfo));
ThreadUtil.safeSleep(1000*3);
log.info("orderInfo-after: {}", JSON.toJSONString(orderInfo));
Utils.checkValueUnReturn(orderInfo, "订单信息不存在");
TbShopInfo shopInfo = tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(orderInfo.getShopId()));
Utils.checkValueUnReturn(shopInfo, "店铺信息不存在");