From 34981c30a78e8bbd7791131059a9210f9928b62c Mon Sep 17 00:00:00 2001
From: 刘光辉 <347230014@qq.com>
Date: 星期四, 17 九月 2026 09:24:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master
---
jnpf-lims/jnpf-lims-controller/src/main/java/jnpf/controller/BarCodeController.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/jnpf-lims/jnpf-lims-controller/src/main/java/jnpf/controller/BarCodeController.java b/jnpf-lims/jnpf-lims-controller/src/main/java/jnpf/controller/BarCodeController.java
new file mode 100644
index 0000000..b10db51
--- /dev/null
+++ b/jnpf-lims/jnpf-lims-controller/src/main/java/jnpf/controller/BarCodeController.java
@@ -0,0 +1,50 @@
+package jnpf.controller;
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.v3.oas.annotations.Operation;
+import jnpf.util.DownUtil;
+import jnpf.util.ServletUtil;
+import jnpf.util.ZxingCodeUtil;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.awt.image.BufferedImage;
+
+/**
+ * 鐢熸垚鏉$爜
+ *
+ * @author JNPF寮�鍙戝钩鍙扮粍
+ * @version V3.1.0
+ * @copyright 寮曡繄淇℃伅鎶�鏈湁闄愬叕鍙革紙https://www.jnpfsoft.com锛�
+ * @date 2019骞�9鏈�26鏃� 涓婂崍9:18
+ */
+@RestController
+@Tag(name = "锛堝緟瀹氾級鐢熸垚鏉$爜", description = "BarCode")
+@RequestMapping("/BarCode")
+public class BarCodeController {
+
+ /**
+ * 鐢熸垚浜岀淮鐮�
+ *
+ * @return
+ */
+ @Operation(summary = "鐢熸垚浜岀淮鐮�")
+ @GetMapping("/BuildQRCode")
+ public void buildQrCode() {
+ BufferedImage image = ZxingCodeUtil.createCode(ServletUtil.getHeader("F_QRCodeContent"), 400, 400);
+ DownUtil.write(image);
+ }
+
+ /**
+ * 鐢熸垚鏉″舰鐮�
+ *
+ * @return
+ */
+ @Operation(summary = "鐢熸垚鏉″舰鐮�")
+ @GetMapping("/BuildBarCode")
+ public void buildBarCode() {
+ BufferedImage image = ZxingCodeUtil.getBarcode(ServletUtil.getHeader("F_BarCodeContent"), 265, 50);
+ DownUtil.write(image);
+ }
+}
--
Gitblit v1.8.0