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
ab277a32
Commit
ab277a32
authored
Nov 11, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化窗口业务查询
parent
14ea80a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
portal-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/ComsumerBurySaveService.java
...hx/daemon/applicationservice/ComsumerBurySaveService.java
+10
-6
No files found.
portal-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/ComsumerBurySaveService.java
View file @
ab277a32
...
@@ -10,11 +10,12 @@ import com.mortals.xhx.module.page.service.PageRouteService;
...
@@ -10,11 +10,12 @@ import com.mortals.xhx.module.page.service.PageRouteService;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.ObjectUtils
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
RedisKey
.
KEY_BURY_POINT_CACHE
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
RedisKey
.
KEY_BURY_POINT_CACHE
;
//
@Component
@Component
@Slf4j
@Slf4j
public
class
ComsumerBurySaveService
implements
IApplicationStartedService
{
public
class
ComsumerBurySaveService
implements
IApplicationStartedService
{
...
@@ -36,14 +37,17 @@ public class ComsumerBurySaveService implements IApplicationStartedService {
...
@@ -36,14 +37,17 @@ public class ComsumerBurySaveService implements IApplicationStartedService {
Thread
sendThread
=
new
Thread
(
new
Runnable
()
{
Thread
sendThread
=
new
Thread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
int
waitTime
=
1
;
int
waitTime
=
1
0
;
while
(!
stopped
)
{
while
(!
stopped
)
{
try
{
try
{
BuryPointPdu
pdu
=
cacheService
.
lpop
(
KEY_BURY_POINT_CACHE
,
BuryPointPdu
.
class
);
BuryPointPdu
pdu
=
cacheService
.
lpop
(
KEY_BURY_POINT_CACHE
,
BuryPointPdu
.
class
);
pageAccessService
.
saveByPdu
(
pdu
);
if
(!
ObjectUtils
.
isEmpty
(
pdu
)){
pageAccessDepthService
.
saveByPdu
(
pdu
);
pageAccessService
.
saveByPdu
(
pdu
);
pageEventService
.
saveByPdu
(
pdu
);
pageAccessDepthService
.
saveByPdu
(
pdu
);
pageRouteService
.
saveByPdu
(
pdu
);
pageEventService
.
saveByPdu
(
pdu
);
pageRouteService
.
saveByPdu
(
pdu
);
}
try
{
try
{
Thread
.
sleep
(
waitTime
);
Thread
.
sleep
(
waitTime
);
}
catch
(
InterruptedException
e2
)
{
}
catch
(
InterruptedException
e2
)
{
...
...
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