Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-job-scheduler
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 664ea4cd
authored
Apr 26, 2023
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
任务调度程序
1 parent
3b1ac11e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
src/main/java/cn/com/glsx/scheduler/modules/job/ShopmallGoodsDataSyncJob.java
src/main/java/cn/com/glsx/scheduler/modules/job/ShopmallGoodsStatusAndPriceSyncJob.java
src/main/java/cn/com/glsx/scheduler/modules/job/ShopmallGoodsDataSyncJob.java
View file @
664ea4c
...
...
@@ -29,10 +29,8 @@ public class ShopmallGoodsDataSyncJob implements SimpleJob {
shardingContext
.
getJobName
(),
shardingContext
.
getJobParameter
()
);
String
normalDate
=
DateUtils
.
formatNormal
(
new
Date
());
log
.
info
(
"---------------{}-开始同步商品数据----------------"
,
normalDate
);
log
.
info
(
"---------------{}-开始同步商品数据----------------"
,
DateUtils
.
formatNormal
(
new
Date
()));
shopmallGoodsDataSyncService
.
syncGoodsListData
();
//shopmallGoodsDataSyncService.syncGoodsInfoData();
log
.
info
(
"---------------{}-商品数据同步结束--------------"
,
DateUtils
.
formatNormal
(
new
Date
()));
}
...
...
src/main/java/cn/com/glsx/scheduler/modules/job/ShopmallGoodsStatusAndPriceSyncJob.java
View file @
664ea4c
...
...
@@ -29,8 +29,11 @@ public class ShopmallGoodsStatusAndPriceSyncJob implements SimpleJob {
shardingContext
.
getJobName
(),
shardingContext
.
getJobParameter
()
);
String
normalDate
=
DateUtils
.
formatNormal
(
new
Date
());
log
.
info
(
"---------------{}-开始同步商品状态和价格----------------"
,
normalDate
);
log
.
info
(
"---------------{}-开始同步特定商品信息----------------"
,
DateUtils
.
formatNormal
(
new
Date
()));
shopmallGoodsDataSyncService
.
syncGoodsInfoData
();
log
.
info
(
"---------------{}-特定商品信息同步结束--------------"
,
DateUtils
.
formatNormal
(
new
Date
()));
log
.
info
(
"---------------{}-开始同步商品状态和价格----------------"
,
DateUtils
.
formatNormal
(
new
Date
()));
shopmallGoodsDataSyncService
.
syncGoodsStatusAndPriceData
();
log
.
info
(
"---------------{}-商品状态和价格同步结束--------------"
,
DateUtils
.
formatNormal
(
new
Date
()));
}
...
...
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