Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
20d51c5c
Commit
20d51c5c
authored
Apr 23, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加角色菜单权限新实现
parent
d6c5f6e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sample-form-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
...als/xhx/daemon/applicationservice/DemoStartedService.java
+10
-0
No files found.
sample-form-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
View file @
20d51c5c
package
com.mortals.xhx.daemon.applicationservice
;
package
com.mortals.xhx.daemon.applicationservice
;
import
com.mortals.framework.springcloud.service.IApplicationStartedService
;
import
com.mortals.framework.springcloud.service.IApplicationStartedService
;
import
com.mortals.xhx.base.system.resource.service.ResourceService
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
com.mortals.xhx.feign.device.IDeviceFeign
;
import
com.mortals.xhx.feign.device.IDeviceFeign
;
import
com.mortals.xhx.feign.site.ISiteFeign
;
import
com.mortals.xhx.feign.site.ISiteFeign
;
...
@@ -16,6 +17,9 @@ import org.springframework.stereotype.Component;
...
@@ -16,6 +17,9 @@ import org.springframework.stereotype.Component;
@Slf4j
@Slf4j
public
class
DemoStartedService
implements
IApplicationStartedService
{
public
class
DemoStartedService
implements
IApplicationStartedService
{
@Autowired
private
ResourceService
resourceService
;
@Autowired
@Autowired
private
UserService
userService
;
private
UserService
userService
;
@Autowired
@Autowired
...
@@ -40,6 +44,12 @@ public class DemoStartedService implements IApplicationStartedService {
...
@@ -40,6 +44,12 @@ public class DemoStartedService implements IApplicationStartedService {
log
.
info
(
"开始同步用户!"
);
log
.
info
(
"开始同步用户!"
);
userService
.
refreshUser
();
userService
.
refreshUser
();
log
.
info
(
"结束同步用户!"
);
log
.
info
(
"结束同步用户!"
);
try
{
resourceService
.
refreshResourceUrl
(
"com.mortals.xhx"
,
null
);
}
catch
(
Exception
e
)
{
log
.
error
(
"刷新资源失败"
,
e
);
}
}
}
@Override
@Override
...
...
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