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
b189ec76
Commit
b189ec76
authored
Jun 04, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.注释掉生产暂时不需要使用登记数据
parent
7a40c437
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
CompanyQuestionJob.java
...amos/boot/module/cylinder/biz/job/CompanyQuestionJob.java
+14
-14
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/biz/job/CompanyQuestionJob.java
View file @
b189ec76
...
@@ -74,27 +74,27 @@ public class CompanyQuestionJob {
...
@@ -74,27 +74,27 @@ public class CompanyQuestionJob {
/**
/**
* 未办理使用登记的问题生成
* 未办理使用登记的问题生成
*/
*/
@SchedulerLock
(
name
=
"genCompanyQuestionOfNoUseRegistrationJob"
,
lockAtMostFor
=
"PT30M"
)
//
@SchedulerLock(name = "genCompanyQuestionOfNoUseRegistrationJob", lockAtMostFor = "PT30M")
@Scheduled
(
cron
=
"${company.no-use.registration.job.cron:0 0 6 * * ?}"
)
//
@Scheduled(cron = "${company.no-use.registration.job.cron:0 0 6 * * ?}")
@Transactional
(
rollbackFor
=
Exception
.
class
)
//
@Transactional(rollbackFor = Exception.class)
public
void
genCompanyQuestionOfNoUseRegistration
()
{
public
void
genCompanyQuestionOfNoUseRegistration
()
{
genCompanyQuestionOfNoUseRegistrationImpl
();
//
genCompanyQuestionOfNoUseRegistrationImpl();
}
}
/**
/**
* 生成未办理使用登记的问题
* 生成未办理使用登记的问题
*/
*/
public
void
genCompanyQuestionOfNoUseRegistrationImpl
()
{
public
void
genCompanyQuestionOfNoUseRegistrationImpl
()
{
List
<
CylinderUnitDto
>
cylinderUnitDtoList
=
cylinderUnitMapper
.
queryCylinderUnitOfNoUseRegistration
(
QuestionTypeEnum
.
WBLSYDJ
.
getCode
());
//
List<CylinderUnitDto> cylinderUnitDtoList = cylinderUnitMapper.queryCylinderUnitOfNoUseRegistration(QuestionTypeEnum.WBLSYDJ.getCode());
List
<
CylinderQuestionInfo
>
cylinderQuestionInfos
=
cylinderUnitDtoList
.
stream
().
map
(
cylinderUnitDto
->
{
//
List<CylinderQuestionInfo> cylinderQuestionInfos = cylinderUnitDtoList.stream().map(cylinderUnitDto -> {
CylinderQuestionInfo
cylinderQuestionInfo
=
new
CylinderQuestionInfo
();
//
CylinderQuestionInfo cylinderQuestionInfo = new CylinderQuestionInfo();
cylinderQuestionInfo
.
setQuestionType
(
QuestionTypeEnum
.
WBLSYDJ
.
getCode
());
//
cylinderQuestionInfo.setQuestionType(QuestionTypeEnum.WBLSYDJ.getCode());
cylinderQuestionInfo
.
setQuestionTypeName
(
QuestionTypeEnum
.
WBLSYDJ
.
getName
());
//
cylinderQuestionInfo.setQuestionTypeName(QuestionTypeEnum.WBLSYDJ.getName());
return
this
.
fillCommonField
(
cylinderUnitDto
,
cylinderQuestionInfo
);
//
return this.fillCommonField(cylinderUnitDto, cylinderQuestionInfo);
}).
collect
(
Collectors
.
toList
());
//
}).collect(Collectors.toList());
if
(
cylinderQuestionInfos
.
size
()
>
0
)
{
//
if (cylinderQuestionInfos.size() > 0) {
questionInfoService
.
saveBatch
(
cylinderQuestionInfos
);
//
questionInfoService.saveBatch(cylinderQuestionInfos);
}
//
}
}
}
...
...
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