Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
fd56b875
Commit
fd56b875
authored
Oct 18, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer_bw' into developer_bw
parents
352b7702
92bdcb09
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
SchedulerConfig.java
...oin/amos/boot/module/hygf/api/config/SchedulerConfig.java
+21
-0
RepaymentServiceImpl.java
...ot/module/hygf/biz/service/impl/RepaymentServiceImpl.java
+0
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/config/SchedulerConfig.java
0 → 100644
View file @
fd56b875
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
;
@Configuration
@EnableScheduling
public
class
SchedulerConfig
{
@Bean
public
ThreadPoolTaskScheduler
taskScheduler
()
{
ThreadPoolTaskScheduler
scheduler
=
new
ThreadPoolTaskScheduler
();
scheduler
.
setPoolSize
(
10
);
// 设置线程池大小为10
scheduler
.
setThreadNamePrefix
(
"my-scheduled-task-"
);
// 设置线程名称前缀
scheduler
.
initialize
();
// 初始化线程池
return
scheduler
;
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/RepaymentServiceImpl.java
View file @
fd56b875
...
@@ -153,7 +153,6 @@ public class RepaymentServiceImpl extends BaseService<RepaymentDto, Repayment, R
...
@@ -153,7 +153,6 @@ public class RepaymentServiceImpl extends BaseService<RepaymentDto, Repayment, R
execute
();
execute
();
}
}
@Async
public
void
execute
()
{
public
void
execute
()
{
log
.
info
(
"====================开始执行定时任务==========================="
);
log
.
info
(
"====================开始执行定时任务==========================="
);
List
<
Repayment
>
repaymentList
=
list
();
List
<
Repayment
>
repaymentList
=
list
();
...
...
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