소스 검색

续建资金项目权限

tags/24080901
PoffyZhang 1 년 전
부모
커밋
b6767bccd9
3개의 변경된 파일38개의 추가작업 그리고 5개의 파일을 삭제
  1. +7
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/gov/controller/GovProjectCollectionController.java
  2. +3
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java
  3. +28
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java

+ 7
- 0
pmapi/src/main/java/com/ningdatech/pmapi/gov/controller/GovProjectCollectionController.java 파일 보기

@@ -163,4 +163,11 @@ public class GovProjectCollectionController {
public void stagingConvertPdf2(@RequestParam(required = false) String projId) {
collectionTask.stagingConvertPdf2(projId);
}

@PostMapping("/staging-convert-pdf3")
@ApiOperation("把库存的项目归集的文件 都转换成PDF文件存入字段 采购")
@WebLog("主动转换库存的文件都为PDF文件 采购")
public void stagingConvertPdf3(@RequestParam(required = false) String projId) {
collectionTask.stagingConvertPdf3(projId);
}
}

+ 3
- 3
pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java 파일 보기

@@ -109,11 +109,11 @@ public class ProjectConvert {
.map(p -> {
ProjectProcureReq r = BeanUtil.copyProperties(p, ProjectProcureReq.class);
r.setBiddingFile(StringUtils.isNotBlank(p.getBiddingFilePdf()) ? p.getBiddingFilePdf() :
p.getBiddingFile());
null);
r.setPurchaseFile(StringUtils.isNotBlank(p.getPurchaseFilePdf()) ? p.getPurchaseFilePdf() :
p.getPurchaseFile());
null);
r.setPurchaseContract(StringUtils.isNotBlank(p.getPurchaseContractPdf()) ? p.getPurchaseContractPdf() :
p.getPurchaseContract());
null);
r.setBaseWinningBidTime(ProjectCollectionUtil.convertLocalDateTime(p.getBaseWinningBidTime()));
r.setBasePaymentTime(ProjectCollectionUtil.convertLocalDateTime(p.getBasePaymentTime()));
return r;


+ 28
- 2
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java 파일 보기

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


}

불러오는 중...
취소
저장