|
@@ -0,0 +1,31 @@
|
|
|
+package com.ydd.third.controller;
|
|
|
+
|
|
|
+import com.ydd.third.common.vo.ResObject;
|
|
|
+import com.ydd.third.print.request.PrintDto;
|
|
|
+import com.ydd.third.print.service.UnifiedPrintService;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 打印机模块
|
|
|
+ * @author 叶君翔
|
|
|
+ * @date 2021/11/10 12:00
|
|
|
+ */
|
|
|
+@RequestMapping(value = "/waimai/print")
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
+public class PrintController {
|
|
|
+
|
|
|
+ private final UnifiedPrintService printService;
|
|
|
+
|
|
|
+ @PostMapping(value="/printOrder")
|
|
|
+ public ResObject printOrder(@RequestBody PrintDto printDto) {
|
|
|
+ printService.printOrder(printDto.getPrintOrderDto(), printDto.getDeviceDtoList(), printDto.getIsforce());
|
|
|
+ return ResObject.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|