Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
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
赵啸非
smart_gov_platform
Commits
24a2182a
Commit
24a2182a
authored
3 months ago
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分一键部署功能
parent
b8f3031f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteBusinessServiceImpl.java
...xhx/module/site/service/impl/SiteBusinessServiceImpl.java
+7
-4
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteBusinessServiceImpl.java
View file @
24a2182a
...
...
@@ -60,16 +60,19 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
Set
<
Long
>
notIdSet
=
params
.
getBusinessIdNotList
().
stream
().
collect
(
Collectors
.
toSet
());
//排除掉了父级,但是子集存在,需要吧父id排除到notlist外
SiteBusinessQuery
siteBusinessQuery
=
new
SiteBusinessQuery
();
siteBusinessQuery
.
setBusinessIdNotList
(
params
.
getBusinessIdNotList
());
List
<
SiteBusinessEntity
>
rootSiteBusiness
=
this
.
find
(
siteBusinessQuery
).
stream
().
filter
(
f
->
f
.
getIsBusiness
()
==
IsBusinessEnum
.
一级业务
.
getValue
()).
collect
(
Collectors
.
toList
());
// siteBusinessQuery.setBusinessIdNotList(params.getBusinessIdNotList());
siteBusinessQuery
.
setIsBusiness
(
IsBusinessEnum
.
一级业务
.
getValue
());
List
<
SiteBusinessEntity
>
rootSiteBusiness
=
this
.
find
(
siteBusinessQuery
).
stream
().
collect
(
Collectors
.
toList
());
for
(
SiteBusinessEntity
root
:
rootSiteBusiness
)
{
SiteBusinessQuery
query
=
new
SiteBusinessQuery
();
query
.
setParentId
(
root
.
getId
());
List
<
SiteBusinessEntity
>
childSiteBusiness
=
this
.
find
(
query
,
context
);
//查询所有二级业务。如果二级业务不全部存在,则把一级业务排除掉
//判断排除的id是否包含所有
Boolean
bool
=
false
;
for
(
SiteBusinessEntity
child
:
childSiteBusiness
)
{
if
(!
notIdSet
.
contains
(
child
.
getId
()))
{
if
(!
notIdSet
.
contains
(
child
.
get
Business
Id
()))
{
bool
=
true
;
break
;
}
...
...
@@ -90,7 +93,7 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
protected
void
findAfter
(
SiteBusinessEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
SiteBusinessEntity
>
list
)
throws
AppException
{
if
(!
ObjectUtils
.
isEmpty
(
params
.
getBusinessIdNotList
()))
{
//排除掉已经存在的ids
log
.
info
(
"idNotList:{}"
,
JSON
.
toJSONString
(
params
.
getIdNotList
()));
log
.
info
(
"idNotList:{}"
,
JSON
.
toJSONString
(
params
.
get
Business
IdNotList
()));
Iterator
<
SiteBusinessEntity
>
iterator
=
list
.
iterator
();
while
(
iterator
.
hasNext
())
{
SiteBusinessQuery
siteBusinessQuery
=
new
SiteBusinessQuery
();
...
...
This diff is collapsed.
Click to expand it.
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