|
@@ -121,23 +121,12 @@ public class SynProjectCollectionTask { |
|
|
log.info("项目归集库存转换PDF任务开始====="); |
|
|
log.info("项目归集库存转换PDF任务开始====="); |
|
|
StopWatch stopWatch = new StopWatch(); |
|
|
StopWatch stopWatch = new StopWatch(); |
|
|
stopWatch.start(); |
|
|
stopWatch.start(); |
|
|
ProjectListReq req = new ProjectListReq(); |
|
|
|
|
|
req.setPageNumber(1); |
|
|
|
|
|
req.setPageSize(BizConst.MAX_EXPORT_COUNT); |
|
|
|
|
|
List<GovBizProjectApply> projects = applyService.list(Wrappers.lambdaQuery(GovBizProjectApply.class) |
|
|
|
|
|
.eq(GovBizProjectApply::getDeleted,Boolean.FALSE) |
|
|
|
|
|
.eq(StringUtils.isNotBlank(projId),GovBizProjectApply::getBaseProjId,projId) |
|
|
|
|
|
.isNotNull(GovBizProjectApply::getBaseProjBasisFile) |
|
|
|
|
|
.isNull(GovBizProjectApply::getBaseProjBasisFilePdf)); |
|
|
|
|
|
|
|
|
|
|
|
if(CollUtil.isEmpty(projects)){ |
|
|
|
|
|
log.info("没有项目归集 任务终止"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for(GovBizProjectApply project : projects){ |
|
|
|
|
|
|
|
|
GovBizProjectBaseinfo base = baseinfoService.getOne(Wrappers.lambdaQuery(GovBizProjectBaseinfo.class) |
|
|
|
|
|
.eq(GovBizProjectBaseinfo::getBaseProjId, projId)); |
|
|
|
|
|
if(Objects.nonNull(base)){ |
|
|
//开始转换PDF |
|
|
//开始转换PDF |
|
|
convertPdfVo(project.getBaseProjId()); |
|
|
|
|
|
|
|
|
convertPdfVo(projId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
stopWatch.stop(); |
|
|
stopWatch.stop(); |
|
|