Browse Source

debug pdf文件格式

master
PoffyZhang 1 year ago
parent
commit
da25c8a4b8
1 changed files with 4 additions and 15 deletions
  1. +4
    -15
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java

+ 4
- 15
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java View File

@@ -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();


Loading…
Cancel
Save