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
23a5a6dd
Commit
23a5a6dd
authored
Nov 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加线程发送消息
parent
f6dbc7e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
portal-manager/src/main/java/com/mortals/xhx/common/utils/SendSubSystemTask.java
.../java/com/mortals/xhx/common/utils/SendSubSystemTask.java
+8
-1
portal-manager/src/main/java/com/mortals/xhx/module/user/service/impl/UserServiceImpl.java
...mortals/xhx/module/user/service/impl/UserServiceImpl.java
+1
-1
No files found.
portal-manager/src/main/java/com/mortals/xhx/common/utils/SendSubSystemTask.java
View file @
23a5a6dd
...
...
@@ -4,6 +4,7 @@ import com.mortals.xhx.feign.area.IApiAreaFeign;
import
com.mortals.xhx.feign.device.IDeviceFeign
;
import
com.mortals.xhx.feign.skin.ISkinFillFeign
;
import
com.mortals.xhx.feign.skin.ISkinSampleFeign
;
import
com.mortals.xhx.utils.SpringUtils
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -24,12 +25,18 @@ public class SendSubSystemTask implements Runnable {
private
ISkinSampleFeign
skinSampleFeign
;
private
ISkinFillFeign
skinFillFeign
;
public
SendSubSystemTask
()
{
apiAreaFeign
=
SpringUtils
.
getBean
(
IApiAreaFeign
.
class
);
deviceFeign
=
SpringUtils
.
getBean
(
IDeviceFeign
.
class
);
skinSampleFeign
=
SpringUtils
.
getBean
(
ISkinSampleFeign
.
class
);
skinFillFeign
=
SpringUtils
.
getBean
(
ISkinFillFeign
.
class
);
}
@Override
public
void
run
()
{
String
resp
=
null
;
try
{
Thread
.
sleep
(
2000
);
apiAreaFeign
.
refreshUser
();
Thread
.
sleep
(
2000
);
deviceFeign
.
refreshUser
();
...
...
portal-manager/src/main/java/com/mortals/xhx/module/user/service/impl/UserServiceImpl.java
View file @
23a5a6dd
...
...
@@ -407,7 +407,7 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
private
void
noticeSubSystemRefresh
()
{
//用户新增修改,推送消息给子系统进行数据同步
SendSubSystemTask
sendSubSystemTask
=
new
SendSubSystemTask
(
apiAreaFeign
,
deviceFeign
,
skinSampleFeign
,
skinFillFeign
);
SendSubSystemTask
sendSubSystemTask
=
new
SendSubSystemTask
();
ThreadPool
.
getInstance
().
execute
(
sendSubSystemTask
);
}
...
...
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