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
ce777592
Commit
ce777592
authored
Jun 14, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据部门id 查询所属大厅
parent
a9335fe4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
base-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
...als/xhx/daemon/applicationservice/DemoStartedService.java
+8
-0
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+1
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
View file @
ce777592
...
...
@@ -26,6 +26,9 @@ import com.mortals.framework.springcloud.service.IApplicationStartedService;
import
org.springframework.util.ObjectUtils
;
import
java.util.List
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
Constant
.
USER_SITE_TREE
;
@Component
@Slf4j
public
class
DemoStartedService
implements
IApplicationStartedService
{
...
...
@@ -35,10 +38,15 @@ public class DemoStartedService implements IApplicationStartedService {
private
IUserFeign
userFeign
;
@Autowired
private
UserService
userService
;
@Autowired
private
ICacheService
cacheService
;
@Override
public
void
start
()
{
logger
.
info
(
"开始服务..[初始化用户站点树]"
);
//删除redis 中的 站点树
cacheService
.
hdel
(
USER_SITE_TREE
);
UserEntity
userEntity
=
new
UserEntity
();
userEntity
.
initAttrValue
();
userEntity
.
setId
(
0L
);
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
ce777592
...
...
@@ -230,7 +230,7 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
}
//如果是管理员 默认全部站点
if
(
context
.
getUser
().
isAdmin
()
||
context
.
getUser
().
getId
()
==
0L
)
{
log
.
info
(
"user is admin !
"
);
log
.
info
(
"user is admin !
id:{}"
,
context
.
getUser
().
getId
()
);
siteList
=
this
.
find
(
new
SiteQuery
());
}
...
...
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