Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡懿
warehouse
Commits
642aefed
Commit
642aefed
authored
Jul 20, 2023
by
anxiaohe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改二维码生成策略,避免重复的二维码
parent
b6ae5746
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
BuildQcUtil.java
...om/jeeplus/modules/warehouse/qrcode/util/BuildQcUtil.java
+4
-0
No files found.
src/main/java/com/jeeplus/modules/warehouse/qrcode/util/BuildQcUtil.java
View file @
642aefed
...
@@ -27,6 +27,10 @@ public class BuildQcUtil {
...
@@ -27,6 +27,10 @@ public class BuildQcUtil {
map
.
put
(
"infoId"
,
goodsInfo
.
getId
());
map
.
put
(
"infoId"
,
goodsInfo
.
getId
());
TwoDimensionCode
.
encoderQRCode
(
JSON
.
toJSONString
(
map
),
qrImgPath
,
"png"
,
6
);
TwoDimensionCode
.
encoderQRCode
(
JSON
.
toJSONString
(
map
),
qrImgPath
,
"png"
,
6
);
File
file
=
new
File
(
qrImgPath
);
File
file
=
new
File
(
qrImgPath
);
File
file2
=
new
File
(
imgPath
);
if
(
file2
.
exists
())
{
file2
.
delete
();
}
try
{
try
{
BufferedImage
image
=
DrawQrcodeUtil
.
createAssetImageNew
(
file
,
qrCode
);
BufferedImage
image
=
DrawQrcodeUtil
.
createAssetImageNew
(
file
,
qrCode
);
DrawQrcodeUtil
drawQrcodeUtil
=
new
DrawQrcodeUtil
();
DrawQrcodeUtil
drawQrcodeUtil
=
new
DrawQrcodeUtil
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment