From 1c1d03dda7bf77724e0ddb900477d191f45d9f04 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 24 四月 2024 10:20:24 +0800
Subject: [PATCH] 1、实现二维码常量类; 2、增加google.zxing依赖包,支持生成二维码。
---
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/util/DyCode.java | 23 +++++++++++
pms-parent/pms-common/pom.xml | 25 +++++++++---
pms-parent/pom.xml | 36 +++++++++++++----
3 files changed, 68 insertions(+), 16 deletions(-)
diff --git a/pms-parent/pms-common/pom.xml b/pms-parent/pms-common/pom.xml
index a048cea..e5e99a3 100644
--- a/pms-parent/pms-common/pom.xml
+++ b/pms-parent/pms-common/pom.xml
@@ -147,13 +147,6 @@
</exclusions>
</dependency>
- <!-- Hutool鏄竴涓皬鑰屽叏鐨凧ava宸ュ叿绫诲簱(https://github.com/dromara/hutool) -->
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>${hutool-all.version}</version>
- </dependency>
-
<!-- jdom2 -->
<dependency>
<groupId>org.jdom</groupId>
@@ -167,6 +160,24 @@
<artifactId>quartz</artifactId>
<version>${quartz.version}</version>
</dependency>
+ <!-- zxing鐢熸垚浜岀淮鐮� -->
+ <dependency>
+ <groupId>com.google.zxing</groupId>
+ <artifactId>core</artifactId>
+ <version>${google.zxing.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.zxing</groupId>
+ <artifactId>javase</artifactId>
+ <version>${google.zxing.version}</version>
+ </dependency>
+
+ <!-- Hutool鏄竴涓皬鑰屽叏鐨凧ava宸ュ叿绫诲簱(https://github.com/dromara/hutool) -->
+ <dependency>
+ <groupId>cn.hutool</groupId>
+ <artifactId>hutool-all</artifactId>
+ <version>${hutool-all.version}</version>
+ </dependency>
<!-- 娴嬭瘯 -->
<dependency>
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/util/DyCode.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/util/DyCode.java
new file mode 100644
index 0000000..ef7dcf1
--- /dev/null
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/util/DyCode.java
@@ -0,0 +1,23 @@
+package com.dy.pmsGlobal.util;
+
+public final class DyCode {
+ /////////////////////////////////////////////
+ //绫诲埆缂栫爜 //
+ /////////////////////////////////////////////
+ public static final String TypeWorker = "101" ; //鍛樺伐
+ public static final String TypeMark = "102" ; //鏍囪瘑
+ public static final String TypeStation = "103" ; //宸ョ珯
+ public static final String TypeProduct = "110" ; //浜у搧
+
+ /////////////////////////////////////////////
+ //鏍囪瘑缂栫爜 //
+ /////////////////////////////////////////////
+ public static final String MarkOk = "102001" ; //纭畾锛氭墽琛岀‘瀹氭搷浣滐紝渚嬪鎻愪氦鏁版嵁
+ public static final String MarkCancel = "102002" ; //鍙栨秷锛氬彇娑堟彁浜ゆ搷浣�
+ public static final String MarkRevoke = "102003" ; //鎾ら攢锛氬宸叉彁浜ょ殑璁惧淇℃伅杩涜鎾ら攢
+ public static final String MarkUnqualified = "102004" ; //涓嶅悎鏍硷細璁惧鐢熶骇杩囩▼涓彂鐜版湰宸ョ珯鐢熶骇涓嶅悎鏍硷紝瑕佹眰杩涜缁翠慨绛夊鐞�
+ public static final String MarkPreUnqualified = "102005" ; //涓婁綅涓嶅悎鏍硷細璁惧鐢熶骇杩囩▼涓彂鐜颁笂浣嶅伐绔欑敓浜т笉鍚堟牸
+ public static final String MarkWaste = "102006" ; //搴熷搧锛氳澶囩敓浜ц繃绋嬩腑鎴愪负搴熷搧锛屽疄涓哄簾寮冧簡璇ヨ澶囩紪鐮佸拰閮ㄥ垎閰嶄欢
+ public static final String MarkLogout = "102007" ; //娉ㄩ攢锛氱敓浜т綔涓氫汉鍛樺湪鐢熶骇鍚庢敞閿�宸ョ珯缁戝畾
+
+}
diff --git a/pms-parent/pom.xml b/pms-parent/pom.xml
index a1c8821..a3c20b7 100644
--- a/pms-parent/pom.xml
+++ b/pms-parent/pom.xml
@@ -50,6 +50,8 @@
<caffeine.version>3.1.8</caffeine.version>
<!-- 鐢熸垚鍥剧墖缂╃暐鍥� -->
<thumbnailator.version>0.4.20</thumbnailator.version>
+ <!-- google zxing 鐢熸垚浜岀淮鐮� -->
+ <google.zxing.version>3.5.3</google.zxing.version>
<spring-boot-maven-plugin.version>3.2.0</spring-boot-maven-plugin.version>
<maven-jar-plugin-plugin.version>3.3.0</maven-jar-plugin-plugin.version>
@@ -242,15 +244,6 @@
</exclusions>
</dependency>
- <!-- Hutool鏄竴涓皬鑰屽叏鐨凧ava宸ュ叿绫诲簱(https://github.com/dromara/hutool) -->
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>${hutool-all.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
<!-- jdom2 -->
<dependency>
<groupId>org.jdom</groupId>
@@ -269,6 +262,31 @@
<scope>import</scope>
</dependency>
+ <!-- zxing鐢熸垚浜岀淮鐮� -->
+ <dependency>
+ <groupId>com.google.zxing</groupId>
+ <artifactId>core</artifactId>
+ <version>${google.zxing.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.zxing</groupId>
+ <artifactId>javase</artifactId>
+ <version>${google.zxing.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+
+ <!-- Hutool鏄竴涓皬鑰屽叏鐨凧ava宸ュ叿绫诲簱(https://github.com/dromara/hutool) -->
+ <dependency>
+ <groupId>cn.hutool</groupId>
+ <artifactId>hutool-all</artifactId>
+ <version>${hutool-all.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+
<!-- 娴嬭瘯 -->
<dependency>
<groupId>junit</groupId>
--
Gitblit v1.8.0