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
a502f7c6
Commit
a502f7c6
authored
Aug 08, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加水印图片
parent
472acef9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
6 deletions
+72
-6
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/CertificateIndustryService.java
...odule/certificate/service/CertificateIndustryService.java
+9
-0
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/impl/CertificateIndustryServiceImpl.java
...tificate/service/impl/CertificateIndustryServiceImpl.java
+18
-6
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/web/CertificateIndustryController.java
...module/certificate/web/CertificateIndustryController.java
+25
-0
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/vo/ApplyLogVo.java
...va/com/mortals/xhx/module/record/model/vo/ApplyLogVo.java
+6
-0
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/web/ApplyLogController.java
...com/mortals/xhx/module/record/web/ApplyLogController.java
+14
-0
No files found.
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/CertificateIndustryService.java
View file @
a502f7c6
...
@@ -50,4 +50,13 @@ public interface CertificateIndustryService extends ICRUDService<CertificateIndu
...
@@ -50,4 +50,13 @@ public interface CertificateIndustryService extends ICRUDService<CertificateIndu
* @return
* @return
*/
*/
List
<
CertificateIndustryTreeSelect
>
getListByParentId
(
Long
parentId
,
Context
context
);
List
<
CertificateIndustryTreeSelect
>
getListByParentId
(
Long
parentId
,
Context
context
);
/**
* 根据父id获取所有子节点id
* @param parentId
* @param context
* @return
*/
List
<
Long
>
getAllListByParentId
(
Long
parentId
,
Context
context
);
}
}
\ No newline at end of file
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/impl/CertificateIndustryServiceImpl.java
View file @
a502f7c6
...
@@ -110,14 +110,16 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert
...
@@ -110,14 +110,16 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert
List
<
CertificateIndustryEntity
>
returnList
=
new
ArrayList
<>();
List
<
CertificateIndustryEntity
>
returnList
=
new
ArrayList
<>();
List
<
Long
>
tempList
=
list
.
stream
().
map
(
CertificateIndustryEntity:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Long
>
tempList
=
list
.
stream
().
map
(
CertificateIndustryEntity:
:
getId
).
collect
(
Collectors
.
toList
());
for
(
Iterator
<
CertificateIndustryEntity
>
iterator
=
list
.
iterator
();
iterator
.
hasNext
();
)
{
Iterator
<
CertificateIndustryEntity
>
iterator
=
list
.
iterator
();
while
(
iterator
.
hasNext
())
{
CertificateIndustryEntity
certificateIndustryEntity
=
iterator
.
next
();
CertificateIndustryEntity
certificateIndustryEntity
=
iterator
.
next
();
if
(!
tempList
.
contains
(
certificateIndustryEntity
.
getParentId
()))
{
if
(!
tempList
.
contains
(
certificateIndustryEntity
.
getParentId
()))
{
recursionFn
(
list
,
certificateIndustryEntity
);
recursionFn
(
list
,
certificateIndustryEntity
);
returnList
.
add
(
certificateIndustryEntity
);
returnList
.
add
(
certificateIndustryEntity
);
}
}
}
}
if
(
returnList
.
isEmpty
())
{
if
(
returnList
.
isEmpty
())
{
returnList
=
list
;
returnList
=
list
;
}
}
...
@@ -164,13 +166,23 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert
...
@@ -164,13 +166,23 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert
if
(
ObjectUtils
.
isEmpty
(
parentId
))
{
if
(
ObjectUtils
.
isEmpty
(
parentId
))
{
parentId
=
-
1L
;
parentId
=
-
1L
;
}
}
//只做一层
List
<
CertificateIndustryTreeSelect
>
collect
=
this
.
find
(
new
CertificateIndustryQuery
().
parentId
(
parentId
),
context
).
stream
().
map
(
item
->
new
CertificateIndustryTreeSelect
(
item
)
List
<
CertificateIndustryTreeSelect
>
collect
=
this
.
find
(
new
CertificateIndustryQuery
().
parentId
(
parentId
),
context
)
).
collect
(
Collectors
.
toList
());
.
stream
().
map
(
item
->
new
CertificateIndustryTreeSelect
(
item
))
if
(
parentId
==-
1L
)
{
.
collect
(
Collectors
.
toList
());
if
(
parentId
==
-
1L
)
{
return
collect
;
return
collect
;
}
}
return
collect
;
return
collect
;
}
}
@Override
public
List
<
Long
>
getAllListByParentId
(
Long
parentId
,
Context
context
)
{
List
<
CertificateIndustryEntity
>
list
=
this
.
find
(
new
CertificateIndustryQuery
().
parentId
(
parentId
));
return
null
;
}
}
}
\ No newline at end of file
one-certificate-manager/src/main/java/com/mortals/xhx/module/certificate/web/CertificateIndustryController.java
View file @
a502f7c6
...
@@ -98,6 +98,31 @@ public class CertificateIndustryController extends BaseCRUDJsonBodyMappingContro
...
@@ -98,6 +98,31 @@ public class CertificateIndustryController extends BaseCRUDJsonBodyMappingContro
}
}
@PostMapping
(
"list/exclude"
)
public
String
excludeList
(
CertificateIndustryEntity
query
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
JSONObject
ret
=
new
JSONObject
();
String
busiDesc
=
"查询"
+
this
.
getModuleDesc
();
Long
id
=
query
.
getId
();
int
code
=
VALUE_RESULT_SUCCESS
;
try
{
Set
<
Long
>
idSet
=
new
HashSet
<>();
idSet
.
add
(
query
.
getId
());
List
<
CertificateIndustryEntity
>
collect
=
this
.
service
.
find
(
new
CertificateIndustryQuery
()).
stream
().
map
(
item
->
{
if
(
idSet
.
contains
(
item
.
getId
()))
return
null
;
return
item
;
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
model
.
put
(
"result"
,
collect
);
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
code
=
VALUE_RESULT_FAILURE
;
this
.
doException
(
request
,
busiDesc
,
model
,
e
);
}
ret
.
put
(
KEY_RESULT_DATA
,
model
);
ret
.
put
(
KEY_RESULT_CODE
,
code
);
return
ret
.
toJSONString
();
}
/**
/**
* 获取站点下拉树列表
* 获取站点下拉树列表
...
...
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/vo/ApplyLogVo.java
View file @
a502f7c6
...
@@ -32,4 +32,10 @@ public class ApplyLogVo extends BaseEntityLong {
...
@@ -32,4 +32,10 @@ public class ApplyLogVo extends BaseEntityLong {
private
List
<
CertificateDocumentPdu
>
childCertificate
;
private
List
<
CertificateDocumentPdu
>
childCertificate
;
/**
* 行业id
*/
private
Long
industryId
;
}
}
\ No newline at end of file
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/web/ApplyLogController.java
View file @
a502f7c6
...
@@ -88,6 +88,20 @@ public class ApplyLogController extends BaseCRUDJsonBodyMappingController<ApplyL
...
@@ -88,6 +88,20 @@ public class ApplyLogController extends BaseCRUDJsonBodyMappingController<ApplyL
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
@Override
protected
void
doListBefore
(
ApplyLogEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(!
ObjectUtils
.
isEmpty
(
query
.
getIndustryId
())){
//获取行业与子行业
//获取对阴目录idlist;
}
super
.
doListBefore
(
query
,
model
,
context
);
}
/**
/**
* 预览正本
* 预览正本
*/
*/
...
...
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