Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
409f25ad
Commit
409f25ad
authored
Nov 01, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加气瓶数据同步定时任务
parent
a7850ad4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
CylSyncServiceImpl.java
...ule/cylinder/flc/biz/service/impl/CylSyncServiceImpl.java
+8
-1
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/service/impl/CylSyncServiceImpl.java
View file @
409f25ad
...
@@ -11,9 +11,11 @@ import com.yeejoin.amos.boot.module.cylinder.flc.api.entity.CylinderInfo;
...
@@ -11,9 +11,11 @@ import com.yeejoin.amos.boot.module.cylinder.flc.api.entity.CylinderInfo;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.mapper.CylCylinderFillingCheckMapper
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.mapper.CylCylinderFillingCheckMapper
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.mapper.CylinderFillingCheckMapper
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.mapper.CylinderFillingCheckMapper
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.mapper.CylinderInfoMapper
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.mapper.CylinderInfoMapper
;
import
net.javacrumbs.shedlock.spring.annotation.SchedulerLock
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StopWatch
;
import
org.springframework.util.StopWatch
;
...
@@ -38,6 +40,8 @@ public class CylSyncServiceImpl {
...
@@ -38,6 +40,8 @@ public class CylSyncServiceImpl {
@Autowired
@Autowired
private
CylCylinderFillingCheckMapper
cylCylinderFillingCheckMapper
;
private
CylCylinderFillingCheckMapper
cylCylinderFillingCheckMapper
;
@Scheduled
(
cron
=
"0 0 1 * * ?"
)
@SchedulerLock
(
name
=
"syncFillingCheckInfo"
,
lockAtMostFor
=
"PT10H"
,
lockAtLeastFor
=
"PT60M"
)
public
void
syncFillingCheckInfo
()
{
public
void
syncFillingCheckInfo
()
{
// Integer totalSize = sourceFillingCheckServiceImpl.getFillCheckListTotal();
// Integer totalSize = sourceFillingCheckServiceImpl.getFillCheckListTotal();
// Integer times;
// Integer times;
...
@@ -125,6 +129,8 @@ public class CylSyncServiceImpl {
...
@@ -125,6 +129,8 @@ public class CylSyncServiceImpl {
}
}
}
}
@Scheduled
(
cron
=
"0 0 1 * * ?"
)
@SchedulerLock
(
name
=
"fillingSync"
,
lockAtMostFor
=
"PT10H"
,
lockAtLeastFor
=
"PT60M"
)
public
Object
fillingSync
()
{
public
Object
fillingSync
()
{
try
{
try
{
StopWatch
stopWatch
=
new
StopWatch
();
StopWatch
stopWatch
=
new
StopWatch
();
...
@@ -227,7 +233,8 @@ public class CylSyncServiceImpl {
...
@@ -227,7 +233,8 @@ public class CylSyncServiceImpl {
}
}
@Scheduled
(
cron
=
"0 0 1 * * ?"
)
@SchedulerLock
(
name
=
"fillingRecordSync"
,
lockAtMostFor
=
"PT10H"
,
lockAtLeastFor
=
"PT60M"
)
public
String
fillingRecordSync
()
{
public
String
fillingRecordSync
()
{
// StopWatch stopWatch = new StopWatch();
// StopWatch stopWatch = new StopWatch();
// stopWatch.start();
// stopWatch.start();
...
...
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