Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 168678a9
authored
Dec 29, 2021
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多线程版本 加了拒绝策略
1 parent
a9af8cca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
17 deletions
src/main/java/com/subsidy/common/configure/ThreadPoolConfig.java
src/main/java/com/subsidy/service/impl/SignInRecordServiceImpl.java
src/main/java/com/subsidy/common/configure/ThreadPoolConfig.java
deleted
100644 → 0
View file @
a9af8cc
package
com
.
subsidy
.
common
.
configure
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.scheduling.annotation.AsyncConfigurer
;
import
java.util.concurrent.*
;
@Configuration
public
class
ThreadPoolConfig
implements
AsyncConfigurer
{
@Bean
public
ExecutorService
getThreadPool
(){
return
Executors
.
newCachedThreadPool
();
}
}
src/main/java/com/subsidy/service/impl/SignInRecordServiceImpl.java
View file @
168678a
...
@@ -81,7 +81,6 @@ public class SignInRecordServiceImpl extends ServiceImpl<SignInRecordMapper, Sig
...
@@ -81,7 +81,6 @@ public class SignInRecordServiceImpl extends ServiceImpl<SignInRecordMapper, Sig
.
orderByDesc
(
SignInRecordDO:
:
getCreateDate
));
.
orderByDesc
(
SignInRecordDO:
:
getCreateDate
));
}
}
@Async
public
String
signIn
(
SignInRecordDO
signInRecordDO
)
{
public
String
signIn
(
SignInRecordDO
signInRecordDO
)
{
/**
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment