Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
fill-system
Commits
eeb82e77
Commit
eeb82e77
authored
Jun 13, 2025
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试bug修改
parent
6ea65a8f
Pipeline
#2977
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fill-manager/src/main/java/com/mortals/xhx/module/datum/service/impl/DatumFillQrcodeServiceImpl.java
...module/datum/service/impl/DatumFillQrcodeServiceImpl.java
+2
-2
fill-manager/src/main/java/com/mortals/xhx/module/datum/web/DatumFillQrcodeController.java
...rtals/xhx/module/datum/web/DatumFillQrcodeController.java
+1
-1
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/datum/service/impl/DatumFillQrcodeServiceImpl.java
View file @
eeb82e77
...
...
@@ -61,10 +61,10 @@ public class DatumFillQrcodeServiceImpl extends AbstractCRUDServiceImpl<DatumFil
if
(!
pathDir
.
exists
())
{
pathDir
.
mkdirs
();
}
String
newName
=
RandomUtil
.
randomNumbers
(
12
)
+
".jpg"
;
String
filePathAll
=
allPath
+
newName
;
for
(
MatterDatumEntity
item:
allDatum
){
String
newName
=
RandomUtil
.
randomNumbers
(
12
)
+
".jpg"
;
String
filePathAll
=
allPath
+
newName
;
String
result
=
WXCreateQRCodeUtil
.
createWeiXinQRCode
(
PATH
+
item
.
getId
(),
appId
,
appSecret
,
filePathAll
);
log
.
info
(
"材料id:{},生成二维码地址:{}"
,
item
.
getId
(),
result
);
if
(
StringUtils
.
isNotEmpty
(
result
))
{
...
...
fill-manager/src/main/java/com/mortals/xhx/module/datum/web/DatumFillQrcodeController.java
View file @
eeb82e77
...
...
@@ -95,7 +95,7 @@ public class DatumFillQrcodeController extends BaseCRUDJsonBodyMappingController
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"createTime"
,
OrderCol
.
DESCENDING
)));
DatumFillQrcodeEntity
entity
=
service
.
selectOne
(
query
);
if
(
entity
!=
null
){
byte
[]
data
=
Files
.
readAllBytes
(
Paths
.
get
(
entity
.
getQrcode
()));
byte
[]
data
=
Files
.
readAllBytes
(
Paths
.
get
(
this
.
filePath
+
entity
.
getQrcode
()));
doResponseImage
(
response
,
data
);
}
}
...
...
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