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
dff19960
Commit
dff19960
authored
Aug 07, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加目录字段
parent
80f03da9
Changes
1
Hide 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/child/service/impl/ChildLicenseServiceImpl.java
...hx/module/child/service/impl/ChildLicenseServiceImpl.java
+8
-4
No files found.
one-certificate-manager/src/main/java/com/mortals/xhx/module/child/service/impl/ChildLicenseServiceImpl.java
View file @
dff19960
...
...
@@ -25,6 +25,8 @@ import com.mortals.xhx.module.child.dao.ChildLicenseDao;
import
com.mortals.xhx.module.child.model.ChildLicenseEntity
;
import
com.mortals.xhx.module.child.service.ChildLicenseService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.util.ObjectUtils
;
/**
* ChildLicenseService
* 行业许可子证 service实现
...
...
@@ -69,10 +71,12 @@ public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicens
this
.
update
(
oldChildList
);
}
if
(
isAdd
)
{
// List<CertificateChildEntity> childEntityList = certificateChildService.find(new CertificateChildQuery().catalogId(applyLogEntity.getCatalogId()));
// List<Long> documentIdList = childEntityList.stream().map(CertificateChildEntity::getDocumentId).collect(Collectors.toList());
//
List
<
CertificateDocumentEntity
>
documentEntityList
=
certificateDocumentService
.
find
(
new
CertificateDocumentQuery
().
status
(
StatusEnum
.
ENABLE
.
getValue
()));
List
<
CertificateChildEntity
>
childEntityList
=
certificateChildService
.
find
(
new
CertificateChildQuery
().
catalogId
(
applyLogEntity
.
getCatalogId
()));
List
<
Long
>
documentIdList
=
childEntityList
.
stream
().
map
(
CertificateChildEntity:
:
getDocumentId
).
collect
(
Collectors
.
toList
());
if
(
ObjectUtils
.
isEmpty
(
documentIdList
))
return
result
;
CertificateDocumentQuery
certificateDocumentQuery
=
new
CertificateDocumentQuery
();
certificateDocumentQuery
.
setIdList
(
documentIdList
);
List
<
CertificateDocumentEntity
>
documentEntityList
=
certificateDocumentService
.
find
(
certificateDocumentQuery
);
if
(
CollectionUtils
.
isNotEmpty
(
documentEntityList
))
{
List
<
ChildLicenseEntity
>
childLicense
=
new
ArrayList
<>();
for
(
CertificateDocumentEntity
item
:
documentEntityList
)
{
...
...
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