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
7942005d
Commit
7942005d
authored
Aug 07, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加目录字段
parent
3a0d5f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
...s/xhx/module/record/service/impl/ApplyLogServiceImpl.java
+14
-4
No files found.
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
View file @
7942005d
...
...
@@ -53,6 +53,7 @@ import java.io.*;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.function.Predicate
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -145,9 +146,18 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
for
(
ApplyLogEntity
entity
:
list
)
{
//List<ChildLicenseEntity> childLicenseList = childLicenseService.find(new ChildLicenseQuery().applyId(entity.getId()));
List
<
ChildLicenseEntity
>
childLicenseList
=
childLicenseListMap
.
get
(
entity
.
getId
());
Predicate
<
ChildLicenseEntity
>
enablePredicate
=
item
->
item
.
getChildStatus
()
==
StatusEnum
.
ENABLE
.
getValue
();
Predicate
<
ChildLicenseEntity
>
processPredicate
=
item
->
item
.
getChildStatus
()
==
StatusEnum
.
ENABLE
.
getValue
()&&
item
.
getProcessStatus
()
==
ProcessStatusEnum
.
已处理
.
getValue
();
long
childSum
=
childLicenseList
.
stream
().
filter
(
enablePredicate
).
count
();
long
pCount
=
childLicenseList
.
stream
().
filter
(
processPredicate
).
count
();
List
<
CertificateDocumentPdu
>
documentEntityList
=
childLicenseList
.
stream
().
map
(
item
->
{
CertificateDocumentPdu
pdu
=
new
CertificateDocumentPdu
();
pdu
.
setId
(
item
.
getId
());
pdu
.
setStatus
(
item
.
getChildStatus
());
pdu
.
setDocumentName
(
item
.
getDocumentName
());
return
pdu
;
}).
collect
(
Collectors
.
toList
());
long
childSum
=
childLicenseList
.
stream
().
filter
(
item
->
item
.
getChildStatus
()
==
StatusEnum
.
ENABLE
.
getValue
()).
count
();
long
pCount
=
childLicenseList
.
stream
().
filter
(
item
->
item
.
getChildStatus
()
==
StatusEnum
.
ENABLE
.
getValue
()&&
item
.
getProcessStatus
()
==
ProcessStatusEnum
.
已处理
.
getValue
()).
count
();
/* int childSum = 0;
int pCount = 0;
List<CertificateDocumentPdu> documentEntityList = new ArrayList<>();
...
...
@@ -168,8 +178,8 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
documentEntityList.add(pdu);
}*/
entity
.
setProcessStatus
(
pCount
+
"/"
+
childSum
);
//
entity.setChildCertificate(documentEntityList);
entity
.
setChildLicense
(
childLicenseList
);
entity
.
setChildCertificate
(
documentEntityList
);
//
entity.setChildLicense(childLicenseList);
}
}
...
...
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