Commit b189ec76 authored by suhuiguang's avatar suhuiguang

1.注释掉生产暂时不需要使用登记数据

parent 7a40c437
......@@ -74,27 +74,27 @@ public class CompanyQuestionJob {
/**
* 未办理使用登记的问题生成
*/
@SchedulerLock(name = "genCompanyQuestionOfNoUseRegistrationJob", lockAtMostFor = "PT30M")
@Scheduled(cron = "${company.no-use.registration.job.cron:0 0 6 * * ?}")
@Transactional(rollbackFor = Exception.class)
// @SchedulerLock(name = "genCompanyQuestionOfNoUseRegistrationJob", lockAtMostFor = "PT30M")
// @Scheduled(cron = "${company.no-use.registration.job.cron:0 0 6 * * ?}")
// @Transactional(rollbackFor = Exception.class)
public void genCompanyQuestionOfNoUseRegistration() {
genCompanyQuestionOfNoUseRegistrationImpl();
// genCompanyQuestionOfNoUseRegistrationImpl();
}
/**
* 生成未办理使用登记的问题
*/
public void genCompanyQuestionOfNoUseRegistrationImpl() {
List<CylinderUnitDto> cylinderUnitDtoList = cylinderUnitMapper.queryCylinderUnitOfNoUseRegistration(QuestionTypeEnum.WBLSYDJ.getCode());
List<CylinderQuestionInfo> cylinderQuestionInfos = cylinderUnitDtoList.stream().map(cylinderUnitDto -> {
CylinderQuestionInfo cylinderQuestionInfo = new CylinderQuestionInfo();
cylinderQuestionInfo.setQuestionType(QuestionTypeEnum.WBLSYDJ.getCode());
cylinderQuestionInfo.setQuestionTypeName(QuestionTypeEnum.WBLSYDJ.getName());
return this.fillCommonField(cylinderUnitDto, cylinderQuestionInfo);
}).collect(Collectors.toList());
if (cylinderQuestionInfos.size() > 0) {
questionInfoService.saveBatch(cylinderQuestionInfos);
}
// List<CylinderUnitDto> cylinderUnitDtoList = cylinderUnitMapper.queryCylinderUnitOfNoUseRegistration(QuestionTypeEnum.WBLSYDJ.getCode());
// List<CylinderQuestionInfo> cylinderQuestionInfos = cylinderUnitDtoList.stream().map(cylinderUnitDto -> {
// CylinderQuestionInfo cylinderQuestionInfo = new CylinderQuestionInfo();
// cylinderQuestionInfo.setQuestionType(QuestionTypeEnum.WBLSYDJ.getCode());
// cylinderQuestionInfo.setQuestionTypeName(QuestionTypeEnum.WBLSYDJ.getName());
// return this.fillCommonField(cylinderUnitDto, cylinderQuestionInfo);
// }).collect(Collectors.toList());
// if (cylinderQuestionInfos.size() > 0) {
// questionInfoService.saveBatch(cylinderQuestionInfos);
// }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment