Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
one-certificate-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
赵啸非
one-certificate-system
Commits
9453eadb
Commit
9453eadb
authored
Jul 28, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
caf6d1d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
...s/xhx/module/record/service/impl/ApplyLogServiceImpl.java
+8
-4
No files found.
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
View file @
9453eadb
...
...
@@ -133,9 +133,13 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
for
(
ApplyLogEntity
entity:
list
){
List
<
ChildLicenseEntity
>
childLicenseList
=
childLicenseService
.
find
(
new
ChildLicenseQuery
().
applyId
(
entity
.
getId
()));
Map
<
Integer
,
List
<
ChildLicenseEntity
>>
group
=
childLicenseList
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getProcessStatus
()));
int
pCount
=
group
.
get
(
1
).
size
();
entity
.
setProcessStatus
(
pCount
+
"/"
+
childLicenseList
.
size
());
if
(
CollectionUtils
.
isEmpty
(
childLicenseList
)){
entity
.
setProcessStatus
(
"0/0"
);
}
else
{
Map
<
Integer
,
List
<
ChildLicenseEntity
>>
group
=
childLicenseList
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getProcessStatus
()));
int
pCount
=
CollectionUtils
.
isEmpty
(
group
.
get
(
1
))
?
0
:
group
.
get
(
1
).
size
();
entity
.
setProcessStatus
(
pCount
+
"/"
+
childLicenseList
.
size
());
}
}
}
}
...
...
@@ -199,7 +203,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
pathDir
.
mkdirs
();
}
String
imagepath
=
filePath
+
qrcodeName
;
String
qrCode
=
serviceUrl
+
"/apply/log/get/"
+
applyLogEntity
.
getSocialCode
();
String
qrCode
=
serviceUrl
+
applyLogEntity
.
getSocialCode
();
QrCodeUtil
.
generateQrCodeFile
(
qrCode
,
imagepath
);
applyLogEntity
.
setQRCode
(
imagepath
);
//entry.setValue(pictureRenderData);
...
...
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