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
de4f05bb
Commit
de4f05bb
authored
Jul 19, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.多余定时任务去掉
parent
f182ee34
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
30 deletions
+31
-30
CylinderDateInfoServiceImpl.java
...tor/flc/biz/service/impl/CylinderDateInfoServiceImpl.java
+1
-1
CylinderFillingRecordServiceImpl.java
...lc/biz/service/impl/CylinderFillingRecordServiceImpl.java
+1
-1
CylinderInfoServiceImpl.java
...levator/flc/biz/service/impl/CylinderInfoServiceImpl.java
+12
-12
VoiceRecordLogServiceImpl.java
...odule/tcm/biz/service/impl/VoiceRecordLogServiceImpl.java
+2
-1
CylinderSchedulerJob.java
.../boot/module/tcm/flc/biz/quartz/CylinderSchedulerJob.java
+1
-1
CylinderDateInfoServiceImpl.java
...tcm/flc/biz/service/impl/CylinderDateInfoServiceImpl.java
+1
-1
CylinderFillingRecordServiceImpl.java
...lc/biz/service/impl/CylinderFillingRecordServiceImpl.java
+1
-1
CylinderInfoServiceImpl.java
...ule/tcm/flc/biz/service/impl/CylinderInfoServiceImpl.java
+12
-12
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/flc/biz/service/impl/CylinderDateInfoServiceImpl.java
View file @
de4f05bb
...
@@ -160,7 +160,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
...
@@ -160,7 +160,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
return
page
;
return
page
;
}
}
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//每天凌晨两点执行
//
@Scheduled(cron = "0 0 2 * * ?") //每天凌晨两点执行
public
void
fixedDelayJob
()
{
public
void
fixedDelayJob
()
{
// 每天更新或者添加昨天的数据
// 每天更新或者添加昨天的数据
Date
date
=
new
Date
();
//取时间
Date
date
=
new
Date
();
//取时间
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/flc/biz/service/impl/CylinderFillingRecordServiceImpl.java
View file @
de4f05bb
...
@@ -126,7 +126,7 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
...
@@ -126,7 +126,7 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
}
}
@Scheduled
(
cron
=
"${tzs.cylinder.fill.cron}"
)
//
@Scheduled(cron = "${tzs.cylinder.fill.cron}")
public
void
setTimeSaveCylinderInfoToES
(){
public
void
setTimeSaveCylinderInfoToES
(){
Page
<
ESCylinderFillingRecordDto
>
cylinderFillingRecordPage
=
new
Page
<>();
Page
<
ESCylinderFillingRecordDto
>
cylinderFillingRecordPage
=
new
Page
<>();
Page
<
ESCylinderFillingRecordDto
>
cyinderInfoList
=
cylinderFillingRecordMapper
.
getCyinderFillingRecord
(
cylinderFillingRecordPage
);
Page
<
ESCylinderFillingRecordDto
>
cyinderInfoList
=
cylinderFillingRecordMapper
.
getCyinderFillingRecord
(
cylinderFillingRecordPage
);
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/flc/biz/service/impl/CylinderInfoServiceImpl.java
View file @
de4f05bb
...
@@ -215,7 +215,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -215,7 +215,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按单位统计
* 按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synFillingUnloadData
()
{
public
void
synFillingUnloadData
()
{
cylinderFillingUnloadDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingUnloadData
>());
cylinderFillingUnloadDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingUnloadData
>());
countByRegion
(
regionModel
->
{
countByRegion
(
regionModel
->
{
...
@@ -241,7 +241,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -241,7 +241,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按区域统计
* 按区域统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synAreaData
()
{
public
void
synAreaData
()
{
cylinderAreaDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderAreaData
>());
cylinderAreaDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderAreaData
>());
countByRegion
(
regionModel
->
{
countByRegion
(
regionModel
->
{
...
@@ -274,7 +274,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -274,7 +274,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按区域统计
* 按区域统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"* * 2 * * ?"
)
//
@Scheduled(cron = "* * 2 * * ?")
public
void
addIntegrityData
()
{
public
void
addIntegrityData
()
{
System
.
out
.
println
(
"====================数据完整性开始============================"
);
System
.
out
.
println
(
"====================数据完整性开始============================"
);
cylinderIntegrityDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderIntegrityData
>());
cylinderIntegrityDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderIntegrityData
>());
...
@@ -338,7 +338,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -338,7 +338,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 企业总量按区域统计
* 企业总量按区域统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
getCylinderUnitInfo
()
{
public
void
getCylinderUnitInfo
()
{
cylinderUnitDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderUnitData
>());
cylinderUnitDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderUnitData
>());
countByRegion
(
regionModel
->
{
countByRegion
(
regionModel
->
{
...
@@ -372,7 +372,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -372,7 +372,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 气瓶总量按区域统计
* 气瓶总量按区域统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
getCylinderInfo
()
{
public
void
getCylinderInfo
()
{
cylinderInfoDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<>());
cylinderInfoDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<>());
countByRegion
(
regionModel
->
{
countByRegion
(
regionModel
->
{
...
@@ -405,7 +405,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -405,7 +405,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按单位统计
* 按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitCylinderInfoData
()
{
public
void
synUnitCylinderInfoData
()
{
cylinderInfoDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderInfoDataUnit
>());
cylinderInfoDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderInfoDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -438,7 +438,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -438,7 +438,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 充装量按单位和月统计
* 充装量按单位和月统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitCylinderFillingData
()
{
public
void
synUnitCylinderFillingData
()
{
cylinderFillingDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingDataUnit
>());
cylinderFillingDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -481,7 +481,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -481,7 +481,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按单位统计
* 按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitCylinderTagsData
()
{
public
void
synUnitCylinderTagsData
()
{
cylinderTagsDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderTagsDataUnit
>());
cylinderTagsDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderTagsDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -512,7 +512,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -512,7 +512,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按单位统计
* 按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitIntegrityData
()
{
public
void
synUnitIntegrityData
()
{
cylinderIntegrityDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderIntegrityDataUnit
>());
cylinderIntegrityDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderIntegrityDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -571,7 +571,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -571,7 +571,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 充装详情按单位统计
* 充装详情按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitFillingCheckData
()
{
public
void
synUnitFillingCheckData
()
{
// cylinderFillingCheckDataUnitServiceImpl.remove(new LambdaQueryWrapper<CylinderFillingCheckDataUnit>());
// cylinderFillingCheckDataUnitServiceImpl.remove(new LambdaQueryWrapper<CylinderFillingCheckDataUnit>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -670,7 +670,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -670,7 +670,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 充装量、卸液量按单位统计
* 充装量、卸液量按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synFillingUnloadUnitData
()
{
public
void
synFillingUnloadUnitData
()
{
cylinderFillingUnloadDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingUnloadDataUnit
>());
cylinderFillingUnloadDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingUnloadDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -692,7 +692,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -692,7 +692,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
});
});
}
}
@Scheduled
(
cron
=
"${tzs.cylinder.info.cron}"
)
//
@Scheduled(cron = "${tzs.cylinder.info.cron}")
public
void
setTimeSaveCylinderInfoToES
(){
public
void
setTimeSaveCylinderInfoToES
(){
Page
<
CylinderInfoDto
>
cylinderInfoPage
=
new
Page
<>();
Page
<
CylinderInfoDto
>
cylinderInfoPage
=
new
Page
<>();
Page
<
CylinderInfoDto
>
cyinderInfoList
=
cylinderInfoMapper
.
getCyinderInfoList
(
cylinderInfoPage
);
Page
<
CylinderInfoDto
>
cyinderInfoList
=
cylinderInfoMapper
.
getCyinderInfoList
(
cylinderInfoPage
);
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/VoiceRecordLogServiceImpl.java
View file @
de4f05bb
...
@@ -18,6 +18,7 @@ import org.apache.logging.log4j.Logger;
...
@@ -18,6 +18,7 @@ import org.apache.logging.log4j.Logger;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
...
@@ -69,7 +70,7 @@ public class VoiceRecordLogServiceImpl extends BaseService<VoiceRecordLogDto,Voi
...
@@ -69,7 +70,7 @@ public class VoiceRecordLogServiceImpl extends BaseService<VoiceRecordLogDto,Voi
@Autowired
@Autowired
private
TzsAuthServiceImpl
tzsAuthServiceImpl
;
private
TzsAuthServiceImpl
tzsAuthServiceImpl
;
@Scheduled
(
fixedDelay
=
ONE_Minute
)
//
@Scheduled(fixedDelay=ONE_Minute)
public
void
fixedDelayJob
(){
public
void
fixedDelayJob
(){
// 设置token
// 设置token
tzsAuthServiceImpl
.
setRequestContext
();
tzsAuthServiceImpl
.
setRequestContext
();
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/quartz/CylinderSchedulerJob.java
View file @
de4f05bb
...
@@ -19,7 +19,7 @@ public class CylinderSchedulerJob {
...
@@ -19,7 +19,7 @@ public class CylinderSchedulerJob {
/**
/**
* 每天9点-日报生成
* 每天9点-日报生成
*/
*/
@Scheduled
(
cron
=
"${cylinder-early-warning-cron:0 0 9 * * ?}"
)
//
@Scheduled(cron = "${cylinder-early-warning-cron:0 0 9 * * ?}")
public
void
dayReport
()
{
public
void
dayReport
()
{
scheduleService
.
calEarlyWarningLevel
();
scheduleService
.
calEarlyWarningLevel
();
}
}
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/CylinderDateInfoServiceImpl.java
View file @
de4f05bb
...
@@ -160,7 +160,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
...
@@ -160,7 +160,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
return
page
;
return
page
;
}
}
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//每天凌晨两点执行
//
@Scheduled(cron = "0 0 2 * * ?") //每天凌晨两点执行
public
void
fixedDelayJob
()
{
public
void
fixedDelayJob
()
{
// 每天更新或者添加昨天的数据
// 每天更新或者添加昨天的数据
Date
date
=
new
Date
();
//取时间
Date
date
=
new
Date
();
//取时间
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/CylinderFillingRecordServiceImpl.java
View file @
de4f05bb
...
@@ -126,7 +126,7 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
...
@@ -126,7 +126,7 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
}
}
@Scheduled
(
cron
=
"${tzs.cylinder.fill.cron}"
)
//
@Scheduled(cron = "${tzs.cylinder.fill.cron}")
public
void
setTimeSaveCylinderInfoToES
(){
public
void
setTimeSaveCylinderInfoToES
(){
Page
<
ESCylinderFillingRecordDto
>
cylinderFillingRecordPage
=
new
Page
<>();
Page
<
ESCylinderFillingRecordDto
>
cylinderFillingRecordPage
=
new
Page
<>();
Page
<
ESCylinderFillingRecordDto
>
cyinderInfoList
=
cylinderFillingRecordMapper
.
getCyinderFillingRecord
(
cylinderFillingRecordPage
);
Page
<
ESCylinderFillingRecordDto
>
cyinderInfoList
=
cylinderFillingRecordMapper
.
getCyinderFillingRecord
(
cylinderFillingRecordPage
);
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/CylinderInfoServiceImpl.java
View file @
de4f05bb
...
@@ -215,7 +215,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -215,7 +215,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按单位统计
* 按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synFillingUnloadData
()
{
public
void
synFillingUnloadData
()
{
cylinderFillingUnloadDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingUnloadData
>());
cylinderFillingUnloadDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingUnloadData
>());
countByRegion
(
regionModel
->
{
countByRegion
(
regionModel
->
{
...
@@ -241,7 +241,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -241,7 +241,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按区域统计
* 按区域统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synAreaData
()
{
public
void
synAreaData
()
{
cylinderAreaDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderAreaData
>());
cylinderAreaDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderAreaData
>());
countByRegion
(
regionModel
->
{
countByRegion
(
regionModel
->
{
...
@@ -274,7 +274,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -274,7 +274,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按区域统计
* 按区域统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"* * 2 * * ?"
)
//
@Scheduled(cron = "* * 2 * * ?")
public
void
addIntegrityData
()
{
public
void
addIntegrityData
()
{
System
.
out
.
println
(
"====================数据完整性开始============================"
);
System
.
out
.
println
(
"====================数据完整性开始============================"
);
cylinderIntegrityDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderIntegrityData
>());
cylinderIntegrityDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderIntegrityData
>());
...
@@ -338,7 +338,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -338,7 +338,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 企业总量按区域统计
* 企业总量按区域统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
getCylinderUnitInfo
()
{
public
void
getCylinderUnitInfo
()
{
cylinderUnitDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderUnitData
>());
cylinderUnitDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderUnitData
>());
countByRegion
(
regionModel
->
{
countByRegion
(
regionModel
->
{
...
@@ -372,7 +372,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -372,7 +372,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 气瓶总量按区域统计
* 气瓶总量按区域统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
getCylinderInfo
()
{
public
void
getCylinderInfo
()
{
cylinderInfoDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<>());
cylinderInfoDataServiceImpl
.
remove
(
new
LambdaQueryWrapper
<>());
countByRegion
(
regionModel
->
{
countByRegion
(
regionModel
->
{
...
@@ -405,7 +405,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -405,7 +405,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按单位统计
* 按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitCylinderInfoData
()
{
public
void
synUnitCylinderInfoData
()
{
cylinderInfoDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderInfoDataUnit
>());
cylinderInfoDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderInfoDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -438,7 +438,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -438,7 +438,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 充装量按单位和月统计
* 充装量按单位和月统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitCylinderFillingData
()
{
public
void
synUnitCylinderFillingData
()
{
cylinderFillingDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingDataUnit
>());
cylinderFillingDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -481,7 +481,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -481,7 +481,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按单位统计
* 按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitCylinderTagsData
()
{
public
void
synUnitCylinderTagsData
()
{
cylinderTagsDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderTagsDataUnit
>());
cylinderTagsDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderTagsDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -512,7 +512,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -512,7 +512,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 按单位统计
* 按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitIntegrityData
()
{
public
void
synUnitIntegrityData
()
{
cylinderIntegrityDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderIntegrityDataUnit
>());
cylinderIntegrityDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderIntegrityDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -571,7 +571,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -571,7 +571,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 充装详情按单位统计
* 充装详情按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synUnitFillingCheckData
()
{
public
void
synUnitFillingCheckData
()
{
// cylinderFillingCheckDataUnitServiceImpl.remove(new LambdaQueryWrapper<CylinderFillingCheckDataUnit>());
// cylinderFillingCheckDataUnitServiceImpl.remove(new LambdaQueryWrapper<CylinderFillingCheckDataUnit>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -670,7 +670,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -670,7 +670,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
* 充装量、卸液量按单位统计
* 充装量、卸液量按单位统计
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
synFillingUnloadUnitData
()
{
public
void
synFillingUnloadUnitData
()
{
cylinderFillingUnloadDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingUnloadDataUnit
>());
cylinderFillingUnloadDataUnitServiceImpl
.
remove
(
new
LambdaQueryWrapper
<
CylinderFillingUnloadDataUnit
>());
countByUnit
(
cylinderUnit
->
{
countByUnit
(
cylinderUnit
->
{
...
@@ -692,7 +692,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -692,7 +692,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
});
});
}
}
@Scheduled
(
cron
=
"${tzs.cylinder.info.cron}"
)
//
@Scheduled(cron = "${tzs.cylinder.info.cron}")
public
void
setTimeSaveCylinderInfoToES
(){
public
void
setTimeSaveCylinderInfoToES
(){
Page
<
CylinderInfoDto
>
cylinderInfoPage
=
new
Page
<>();
Page
<
CylinderInfoDto
>
cylinderInfoPage
=
new
Page
<>();
Page
<
CylinderInfoDto
>
cyinderInfoList
=
cylinderInfoMapper
.
getCyinderInfoList
(
cylinderInfoPage
);
Page
<
CylinderInfoDto
>
cyinderInfoList
=
cylinderInfoMapper
.
getCyinderInfoList
(
cylinderInfoPage
);
...
...
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