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
f8bc1077
Commit
f8bc1077
authored
Aug 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加水印图片
parent
2827b329
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
7 deletions
+24
-7
one-certificate-manager/src/main/java/com/mortals/xhx/busiz/web/TestSendMsgController.java
...java/com/mortals/xhx/busiz/web/TestSendMsgController.java
+13
-0
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/CertificateIndustryService.java
...odule/certificate/service/CertificateIndustryService.java
+3
-0
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/impl/CertificateIndustryServiceImpl.java
...tificate/service/impl/CertificateIndustryServiceImpl.java
+0
-4
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/web/ApplyLogController.java
...com/mortals/xhx/module/record/web/ApplyLogController.java
+7
-2
one-certificate-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+1
-1
No files found.
one-certificate-manager/src/main/java/com/mortals/xhx/busiz/web/TestSendMsgController.java
View file @
f8bc1077
...
...
@@ -6,6 +6,8 @@ import com.mortals.framework.common.Rest;
import
com.mortals.xhx.base.system.upload.service.UploadService
;
import
com.mortals.xhx.common.key.Constant
;
import
com.mortals.xhx.common.utils.WatermarkImgUtils
;
import
com.mortals.xhx.module.certificate.model.CertificateIndustryTreeSelect
;
import
com.mortals.xhx.module.certificate.service.CertificateIndustryService
;
import
com.mortals.xhx.module.child.model.ChildLicenseEntity
;
import
com.mortals.xhx.module.child.model.ChildLicenseQuery
;
import
com.mortals.xhx.module.child.service.ChildLicenseService
;
...
...
@@ -37,6 +39,8 @@ public class TestSendMsgController {
private
UploadService
uploadService
;
@Autowired
private
ChildLicenseService
childLicenseService
;
@Autowired
private
CertificateIndustryService
certificateIndustryService
;
@GetMapping
(
"refreshWaterMark"
)
...
...
@@ -117,6 +121,15 @@ public class TestSendMsgController {
return
Rest
.
ok
();
}
@GetMapping
(
"subtree"
)
public
Rest
<
Void
>
subtree
(
Long
parentId
)
{
// List<CertificateIndustryTreeSelect> allListByParentId = certificateIndustryService.getAllListByParentId(parentId, null)
return
Rest
.
ok
();
}
public
static
void
main
(
String
[]
args
)
{
...
...
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/CertificateIndustryService.java
View file @
f8bc1077
...
...
@@ -2,6 +2,7 @@ package com.mortals.xhx.module.certificate.service;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.certificate.dao.CertificateIndustryDao
;
import
com.mortals.xhx.module.certificate.model.CertificateIndustryEntity
;
import
com.mortals.xhx.module.certificate.model.CertificateIndustryTreeSelect
;
...
...
@@ -16,6 +17,8 @@ import java.util.List;
* @date 2022-10-14
*/
public
interface
CertificateIndustryService
extends
ICRUDService
<
CertificateIndustryEntity
,
Long
>
{
CertificateIndustryDao
getDao
();
/**
* 是否存在行业目录节点
*
...
...
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/impl/CertificateIndustryServiceImpl.java
View file @
f8bc1077
...
...
@@ -176,10 +176,6 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert
recursionFn
(
list
,
certificateIndustryEntity
);
returnList
.
add
(
certificateIndustryEntity
);
}
if
(
returnList
.
isEmpty
())
{
returnList
=
list
;
}
return
returnList
.
stream
().
map
(
CertificateIndustryTreeSelect:
:
new
).
collect
(
Collectors
.
toList
());
}
...
...
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/web/ApplyLogController.java
View file @
f8bc1077
...
...
@@ -105,13 +105,18 @@ public class ApplyLogController extends BaseCRUDJsonBodyMappingController<ApplyL
query
.
setCatalogId
(-
1L
);
return
;
}
List
<
Long
>
industryIdList
=
certificateIndustryService
.
find
(
new
CertificateIndustryQuery
()
List
<
CertificateIndustryEntity
>
childsEntities
=
certificateIndustryService
.
getDao
().
selectChildrenCertificateIndustryById
(
query
.
getIndustryId
().
toString
());
List
<
Long
>
industryIdList
=
childsEntities
.
stream
().
map
(
x
->
x
.
getId
()).
collect
(
Collectors
.
toList
());
industryIdList
.
add
(
query
.
getIndustryId
());
/* List<Long> industryIdList = certificateIndustryService.find(new CertificateIndustryQuery()
.ancestors(industryEntity.getAncestors() + "%"))
.stream().map(x -> x.getId()).collect(Collectors.toList());
if(ObjectUtils.isEmpty(industryIdList)) {
query.setCatalogId(-1L);
return;
}
}
*/
List
<
Long
>
catalogIdlist
=
certificateCatalogService
.
find
(
new
CertificateCatalogQuery
().
industryIdList
(
industryIdList
))
.
stream
().
map
(
x
->
x
.
getId
()).
collect
(
Collectors
.
toList
());
if
(
ObjectUtils
.
isEmpty
(
catalogIdlist
))
{
...
...
one-certificate-manager/src/test/java/com/mortals/httpclient/system.http
View file @
f8bc1077
...
...
@@ -58,6 +58,6 @@ Content-Type: application/json
{
"industryId": 1
9
"industryId": 1
8
}
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