订单打印修改
This commit is contained in:
parent
5431e81191
commit
9beaa635b7
|
|
@ -7,7 +7,6 @@ import cn.hutool.core.util.IdUtil;
|
|||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.czg.account.dto.print.PrinterOrderDTO;
|
||||
import com.czg.account.dto.shopuser.ShopUserMoneyEditDTO;
|
||||
import com.czg.account.entity.*;
|
||||
import com.czg.account.service.*;
|
||||
|
|
@ -758,10 +757,6 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||
throw new ApiNotPrintException("订单信息不存在");
|
||||
}
|
||||
|
||||
long count = count(new QueryWrapper().eq(PrintMachine::getShopId, shopId));
|
||||
if (count == 0) {
|
||||
throw new ApiNotPrintException("未配置打印机");
|
||||
}
|
||||
rabbitPublisher.sendOrderPrintMsg(orderInfo.getId().toString());
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue