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
24de99c3
Commit
24de99c3
authored
Jun 06, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加站点业务中子业务列表
parent
505fdf9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteBusinessServiceImpl.java
...xhx/module/site/service/impl/SiteBusinessServiceImpl.java
+7
-2
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteBusinessServiceImpl.java
View file @
24de99c3
...
...
@@ -3,6 +3,7 @@ package com.mortals.xhx.module.site.service.impl;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.Result
;
import
com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl
;
import
com.mortals.xhx.common.code.IsBusinessEnum
;
import
com.mortals.xhx.module.business.model.BusinessEntity
;
import
com.mortals.xhx.module.business.model.BusinessQuery
;
import
com.mortals.xhx.module.business.service.BusinessService
;
...
...
@@ -36,8 +37,6 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
@Autowired
private
BusinessService
businessService
;
@Override
protected
void
findAfter
(
SiteBusinessEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
SiteBusinessEntity
>
list
)
throws
AppException
{
list
.
stream
().
peek
(
item
->
{
...
...
@@ -46,6 +45,12 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
BusinessEntity
businessEntity
=
businessService
.
get
(
item
.
getBusinessId
());
if
(!
ObjectUtils
.
isEmpty
(
businessEntity
)){
BeanUtils
.
copyProperties
(
businessEntity
,
item
,
"id"
);
//判断业务是否含有子业务
if
(
businessEntity
.
getIsBusiness
()==
IsBusinessEnum
.
一级业务
.
getValue
()){
//添加二级业务列表
List
<
BusinessEntity
>
businessEntities
=
businessService
.
find
(
new
BusinessQuery
().
parentId
(
businessEntity
.
getId
()));
businessEntity
.
setChildren
(
businessEntities
);
}
}
}
item
.
setChildren
(
childs
);
...
...
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