|
|
@@ -181,6 +181,34 @@ public class SynProjectCollectionTask { |
|
|
|
log.info("项目归集库存转换PDF任务2结束====={}s",stopWatch.getTotalTimeSeconds()); |
|
|
|
} |
|
|
|
|
|
|
|
public void stagingConvertPdf3(String projId) { |
|
|
|
log.info("项目归集库存转换PDF任务3开始====="); |
|
|
|
|
|
|
|
StopWatch stopWatch = new StopWatch(); |
|
|
|
stopWatch.start(); |
|
|
|
ProjectListReq req = new ProjectListReq(); |
|
|
|
req.setPageNumber(1); |
|
|
|
req.setPageSize(BizConst.MAX_EXPORT_COUNT); |
|
|
|
List<GovBizProjectProcure> procures = procureService.list(Wrappers.lambdaQuery(GovBizProjectProcure.class) |
|
|
|
.eq(GovBizProjectProcure::getDeleted,Boolean.FALSE) |
|
|
|
.eq(StringUtils.isNotBlank(projId),GovBizProjectProcure::getBaseProjId,projId) |
|
|
|
.isNotNull(GovBizProjectProcure::getPurchaseContract) |
|
|
|
.isNull(GovBizProjectProcure::getPurchaseContractPdf)); |
|
|
|
|
|
|
|
if(CollUtil.isEmpty(procures)){ |
|
|
|
log.info("没有项目归集 采购信息 任务终止"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
for(GovBizProjectProcure procure : procures){ |
|
|
|
//开始转换PDF |
|
|
|
convertPdfVo(procure.getBaseProjId()); |
|
|
|
} |
|
|
|
|
|
|
|
stopWatch.stop(); |
|
|
|
log.info("项目归集库存转换PDF任务3结束====={}s",stopWatch.getTotalTimeSeconds()); |
|
|
|
} |
|
|
|
|
|
|
|
//开始转换PDF |
|
|
|
private void convertPdfVo(String baseProjId) { |
|
|
|
convertPdfApply(baseProjId); |
|
|
@@ -381,6 +409,4 @@ public class SynProjectCollectionTask { |
|
|
|
procureService.updateById(procure); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |