Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AmosBankPatrolRoot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bank
AmosBankPatrolRoot
Commits
126bcbb1
Commit
126bcbb1
authored
Aug 18, 2020
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计划定时任务修改
parent
82898793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Safety3DDataSendServiceImpl.java
...ce/business/service/impl/Safety3DDataSendServiceImpl.java
+3
-1
TaskExecutorPoolConfig.java
...mos/patrol/service/core/async/TaskExecutorPoolConfig.java
+1
-1
No files found.
AmosBankPatrolService/src/main/java/com/yeejoin/amos/patrol/service/business/service/impl/Safety3DDataSendServiceImpl.java
View file @
126bcbb1
...
@@ -214,7 +214,9 @@ public class Safety3DDataSendServiceImpl implements ISafety3DDataSendService {
...
@@ -214,7 +214,9 @@ public class Safety3DDataSendServiceImpl implements ISafety3DDataSendService {
public
PointCheckInfoBusinessRespone
pointCheckInfoPushToB
(
String
toke
,
String
product
,
String
appKey
,
Long
checkId
)
{
public
PointCheckInfoBusinessRespone
pointCheckInfoPushToB
(
String
toke
,
String
product
,
String
appKey
,
Long
checkId
)
{
//获取推送内容
//获取推送内容
PointCheckInfoBusinessRespone
pb
=
checkMapper
.
getCheckInfoBusinessById
(
checkId
);
PointCheckInfoBusinessRespone
pb
=
checkMapper
.
getCheckInfoBusinessById
(
checkId
);
if
(
ObjectUtils
.
isEmpty
(
pb
)){
return
pb
;
}
AgencyUserModel
userById
=
remoteSecurityService
.
getUserById
(
toke
,
product
,
appKey
,
pb
.
getUserId
());
AgencyUserModel
userById
=
remoteSecurityService
.
getUserById
(
toke
,
product
,
appKey
,
pb
.
getUserId
());
if
(
null
!=
userById
&&
!
StringUtils
.
isEmpty
(
userById
.
getUserName
()))
{
if
(
null
!=
userById
&&
!
StringUtils
.
isEmpty
(
userById
.
getUserName
()))
{
pb
.
setUserName
(
userById
.
getRealName
());
pb
.
setUserName
(
userById
.
getRealName
());
...
...
AmosBankPatrolService/src/main/java/com/yeejoin/amos/patrol/service/core/async/TaskExecutorPoolConfig.java
View file @
126bcbb1
...
@@ -12,7 +12,7 @@ public class TaskExecutorPoolConfig {
...
@@ -12,7 +12,7 @@ public class TaskExecutorPoolConfig {
public
Executor
taskExecutor
()
{
public
Executor
taskExecutor
()
{
ThreadPoolTaskExecutor
executor
=
new
ThreadPoolTaskExecutor
();
ThreadPoolTaskExecutor
executor
=
new
ThreadPoolTaskExecutor
();
executor
.
setCorePoolSize
(
10
);
//线程池维护线程的最少数量
executor
.
setCorePoolSize
(
10
);
//线程池维护线程的最少数量
executor
.
setMaxPoolSize
(
2
0
);
//线程池维护线程的最大数量
executor
.
setMaxPoolSize
(
10
0
);
//线程池维护线程的最大数量
executor
.
setQueueCapacity
(
100
);
executor
.
setQueueCapacity
(
100
);
executor
.
setKeepAliveSeconds
(
30
);
//线程池维护线程所允许的空闲时间,TimeUnit.SECONDS
executor
.
setKeepAliveSeconds
(
30
);
//线程池维护线程所允许的空闲时间,TimeUnit.SECONDS
executor
.
setThreadNamePrefix
(
"asyncTaskExecutor-"
);
executor
.
setThreadNamePrefix
(
"asyncTaskExecutor-"
);
...
...
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