Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
base-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
赵啸非
base-platform
Commits
021abf5f
Commit
021abf5f
authored
May 11, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改站点权限分配
parent
a73e2fb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
base-manager/src/main/java/com/mortals/xhx/module/site/model/vo/SiteBusinessVo.java
.../com/mortals/xhx/module/site/model/vo/SiteBusinessVo.java
+33
-0
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteBusinessServiceImpl.java
...xhx/module/site/service/impl/SiteBusinessServiceImpl.java
+16
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/model/vo/SiteBusinessVo.java
View file @
021abf5f
...
...
@@ -16,4 +16,37 @@ public class SiteBusinessVo extends BaseEntityLong {
/** 子站点事项 */
private
List
<
SiteBusinessEntity
>
children
=
new
ArrayList
<>();
/**
* 备注
*/
private
String
remark
;
/**
* 是否允许预约(1.允许,0.不允许)
*/
private
Integer
canorder
;
/**
* 是否允许取号(1.允许,0.不允许)
*/
private
Integer
cantake
;
/**
* 大厅情况展示 (1.展示,0.不展示)
*/
private
Integer
datashow
;
/**
* 英语业务名
*/
private
String
englishname
;
/**
* 流水编号如A、B
*/
private
String
flownum
;
/**
* 业务类型 (0.一体化业务,1.自建业务)
*/
private
Integer
businessType
;
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteBusinessServiceImpl.java
View file @
021abf5f
...
...
@@ -5,6 +5,9 @@ import com.mortals.framework.model.Result;
import
com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl
;
import
com.mortals.xhx.module.business.model.BusinessEntity
;
import
com.mortals.xhx.module.business.model.BusinessQuery
;
import
com.mortals.xhx.module.business.service.BusinessService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
...
...
@@ -30,6 +33,8 @@ import java.util.stream.Collectors;
@Service
(
"siteBusinessService"
)
public
class
SiteBusinessServiceImpl
extends
AbstractCRUDCacheServiceImpl
<
SiteBusinessDao
,
SiteBusinessEntity
,
Long
>
implements
SiteBusinessService
{
@Autowired
private
BusinessService
businessService
;
@Override
protected
void
findAfter
(
SiteBusinessEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
SiteBusinessEntity
>
list
)
throws
AppException
{
...
...
@@ -104,6 +109,17 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
@Override
public
Result
<
SiteBusinessEntity
>
flatList
(
SiteBusinessEntity
query
,
PageInfo
pageInfo
,
Context
context
)
{
Result
<
SiteBusinessEntity
>
result
=
this
.
dao
.
getList
(
query
,
pageInfo
);
result
.
getList
().
stream
().
forEach
(
item
->{
if
(!
ObjectUtils
.
isEmpty
(
item
.
getBusinessId
())){
BusinessEntity
businessEntity
=
businessService
.
get
(
item
.
getBusinessId
());
if
(!
ObjectUtils
.
isEmpty
(
businessEntity
)){
BeanUtils
.
copyProperties
(
businessEntity
,
item
,
"id"
);
}
}
});
return
result
;
}
...
...
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