打印移动到order模块
This commit is contained in:
@@ -7,7 +7,6 @@ import com.czg.account.vo.LoginVO;
|
||||
import com.czg.annotation.SaAdminCheckPermission;
|
||||
import com.czg.annotation.SaStaffCheckPermission;
|
||||
import com.czg.config.RabbitPublisher;
|
||||
import com.czg.mq.PrintMqListener;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import jakarta.annotation.Resource;
|
||||
@@ -53,13 +52,11 @@ public class AuthorizationController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
@Resource
|
||||
PrintMqListener printMqListener;
|
||||
@Resource
|
||||
RabbitPublisher rabbitPublisher;
|
||||
@GetMapping("test")
|
||||
public CzgResult<?> login() {
|
||||
rabbitPublisher.sendOrderPrintMsg("1");
|
||||
rabbitPublisher.sendOrderPrintMsg("552");
|
||||
// printMqListener.orderPrint("1");
|
||||
// return CzgResult.success(Map.of("token", StpKit.USER.getShopId()));
|
||||
return CzgResult.success();
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.czg.controller.admin;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 存酒管理
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping
|
||||
public class ShopStorageGoodController {
|
||||
|
||||
}
|
||||
@@ -3,21 +3,19 @@ package com.czg.mq;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.czg.account.entity.MqLog;
|
||||
import com.czg.order.entity.MqLog;
|
||||
import com.czg.account.entity.PrintMachine;
|
||||
import com.czg.account.service.MqLogService;
|
||||
import com.czg.order.service.MqLogService;
|
||||
import com.czg.account.service.PrintMachineService;
|
||||
import com.czg.config.RabbitConstants;
|
||||
import com.czg.order.entity.OrderInfo;
|
||||
import com.czg.order.service.OrderInfoService;
|
||||
import com.czg.service.account.print.PrinterHandler;
|
||||
import com.czg.service.order.print.PrinterHandler;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@@ -32,12 +30,12 @@ import java.util.List;
|
||||
@Slf4j
|
||||
public class PrintMqListener {
|
||||
@DubboReference
|
||||
private OrderInfoService orderInfoService;
|
||||
private PrintMachineService printMachineService;
|
||||
|
||||
@Resource
|
||||
private MqLogService mqLogService;
|
||||
private OrderInfoService orderInfoService;
|
||||
@Resource
|
||||
private PrintMachineService printMachineService;
|
||||
private MqLogService mqLogService;
|
||||
@Lazy
|
||||
@Resource
|
||||
private PrinterHandler printerHandler;
|
||||
Reference in New Issue
Block a user