@@ -6,6 +6,7 @@ import com.ningdatech.pmapi.gov.contants.BizProjectContant; | |||
import com.ningdatech.pmapi.gov.model.dto.*; | |||
import com.ningdatech.pmapi.gov.model.req.*; | |||
import com.ningdatech.pmapi.gov.model.vo.*; | |||
import org.apache.commons.lang3.StringUtils; | |||
import java.util.Collections; | |||
import java.util.List; | |||
@@ -47,6 +48,17 @@ public class ProjectConvert { | |||
return req; | |||
} | |||
public static ProjectPushReq convertWithConvertPdf(GovBizProjectDetailVO vo) { | |||
ProjectPushReq req = new ProjectPushReq(); | |||
req.setBaseinfo(convertBaseVo(vo.getBaseinfo(),BizProjectContant.EFFECTIVE_CODE)); | |||
req.setApply(convertApplyVoWithConvertPdf(vo.getApply())); | |||
req.setApprove(convertApproveVoWithConvertPdf(vo.getApprove())); | |||
req.setCimplement(convertCimplementVoWithConvertPdf(vo.getCimplement())); | |||
req.setMimplement(convertMimplementVoWithConvertPdf(vo.getMimplement())); | |||
req.setProcures(convertProcuresVoWithConvertPdf(vo.getProcures())); | |||
return req; | |||
} | |||
private static List<ProjectProcureReq> convertProcures(List<GovBizProjectProcureDTO> procures) { | |||
if(CollUtil.isEmpty(procures)){ | |||
return Collections.emptyList(); | |||
@@ -81,6 +93,26 @@ public class ProjectConvert { | |||
return req; | |||
} | |||
private static List<ProjectProcureReq> convertProcuresVoWithConvertPdf(List<GovBizProjectProcureVO> procures) { | |||
if(CollUtil.isEmpty(procures)){ | |||
return Collections.emptyList(); | |||
} | |||
List<ProjectProcureReq> req = procures.stream() | |||
.map(p -> { | |||
ProjectProcureReq r = BeanUtil.copyProperties(p, ProjectProcureReq.class); | |||
r.setBiddingFile(StringUtils.isNotBlank(p.getBiddingFilePdf()) ? p.getBiddingFilePdf() : | |||
p.getBiddingFile()); | |||
r.setPurchaseFile(StringUtils.isNotBlank(p.getPurchaseFilePdf()) ? p.getPurchaseFilePdf() : | |||
p.getPurchaseFile()); | |||
r.setPurchaseContract(StringUtils.isNotBlank(p.getPurchaseContractPdf()) ? p.getPurchaseContractPdf() : | |||
p.getPurchaseContract()); | |||
return r; | |||
}) | |||
.collect(Collectors.toList()); | |||
return req; | |||
} | |||
private static ProjectMimplementReq convertMimplement(GovBizProjectMimplementDTO mimplement) { | |||
ProjectMimplementReq req = BeanUtil.copyProperties(mimplement,ProjectMimplementReq.class); | |||
return req; | |||
@@ -91,6 +123,31 @@ public class ProjectConvert { | |||
return req; | |||
} | |||
private static ProjectMimplementReq convertMimplementVoWithConvertPdf(GovBizProjectMimplementVO mimplement) { | |||
ProjectMimplementReq req = BeanUtil.copyProperties(mimplement,ProjectMimplementReq.class); | |||
req.setBaseUserConsFile(StringUtils.isNotBlank(mimplement.getBaseUserConsFilePdf()) ? mimplement.getBaseUserConsFilePdf() : | |||
mimplement.getBaseUserConsFile()); | |||
req.setBaseChanFile(StringUtils.isNotBlank(mimplement.getBaseChanFilePdf()) ? mimplement.getBaseChanFilePdf() : | |||
mimplement.getBaseChanFile()); | |||
req.setBasePasswAssessFile(StringUtils.isNotBlank(mimplement.getBasePasswAssessFilePdf()) ? mimplement.getBasePasswAssessFilePdf() : | |||
mimplement.getBasePasswAssessFile()); | |||
req.setBaseInforLevelFile(StringUtils.isNotBlank(mimplement.getBaseInforLevelFilePdf()) ? mimplement.getBaseInforLevelFilePdf() : | |||
mimplement.getBaseInforLevelFile()); | |||
req.setBaseEngineerPostpoFile(StringUtils.isNotBlank(mimplement.getBaseEngineerPostpoFilePdf()) ? mimplement.getBaseEngineerPostpoFilePdf() : | |||
mimplement.getBaseEngineerPostpoFile()); | |||
req.setBaseEstaSummFile(StringUtils.isNotBlank(mimplement.getBaseEstaSummFilePdf()) ? mimplement.getBaseEstaSummFilePdf() : | |||
mimplement.getBaseEstaSummFile()); | |||
req.setBaseFinalExpertOpinionFile(StringUtils.isNotBlank(mimplement.getBaseFinalExpertOpinionFilePdf()) ? mimplement.getBaseFinalExpertOpinionFilePdf() : | |||
mimplement.getBaseFinalExpertOpinionFile()); | |||
req.setBaseThirdAcceptFile(StringUtils.isNotBlank(mimplement.getBaseThirdAcceptFilePdf()) ? mimplement.getBaseThirdAcceptFilePdf() : | |||
mimplement.getBaseThirdAcceptFile()); | |||
req.setBaseOperatMaintenSummFile(StringUtils.isNotBlank(mimplement.getBaseOperatMaintenSummFilePdf()) ? mimplement.getBaseOperatMaintenSummFilePdf() : | |||
mimplement.getBaseOperatMaintenSummFile()); | |||
req.setBaseEngineerAlterFile(StringUtils.isNotBlank(mimplement.getBaseEngineerAlterFilePdf()) ? mimplement.getBaseEngineerAlterFilePdf() : | |||
mimplement.getBaseEngineerAlterFile()); | |||
return req; | |||
} | |||
public static ProjectCimplementReq convertCimplement(GovBizProjectCimplementDTO cimplement) { | |||
ProjectCimplementReq req = BeanUtil.copyProperties(cimplement,ProjectCimplementReq.class); | |||
return req; | |||
@@ -101,6 +158,39 @@ public class ProjectConvert { | |||
return req; | |||
} | |||
public static ProjectCimplementReq convertCimplementVoWithConvertPdf(GovBizProjectCimplementVO cimplement) { | |||
ProjectCimplementReq req = BeanUtil.copyProperties(cimplement,ProjectCimplementReq.class); | |||
req.setBaseChangeFormFile(StringUtils.isNotBlank(cimplement.getBaseChangeFormFilePdf()) ? cimplement.getBaseChangeFormFilePdf() : | |||
cimplement.getBaseChangeFormFile()); | |||
req.setBaseUserConsFile(StringUtils.isNotBlank(cimplement.getBaseUserConsFilePdf()) ? cimplement.getBaseUserConsFilePdf() : | |||
cimplement.getBaseUserConsFile()); | |||
req.setBaseCheckFile(StringUtils.isNotBlank(cimplement.getBaseCheckFilePdf()) ? cimplement.getBaseCheckFilePdf() : | |||
cimplement.getBaseCheckFile()); | |||
req.setBaseChanFile(StringUtils.isNotBlank(cimplement.getBaseChanFilePdf()) ? cimplement.getBaseChanFilePdf() : | |||
cimplement.getBaseChanFile()); | |||
req.setBaseSummReportFile(StringUtils.isNotBlank(cimplement.getBaseSummReportFilePdf()) ? cimplement.getBaseSummReportFilePdf() : | |||
cimplement.getBaseSummReportFile()); | |||
req.setBasePasswAssessFile(StringUtils.isNotBlank(cimplement.getBasePasswAssessFilePdf()) ? cimplement.getBasePasswAssessFilePdf() : | |||
cimplement.getBasePasswAssessFile()); | |||
req.setBaseInforLevelFile(StringUtils.isNotBlank(cimplement.getBaseInforLevelFilePdf()) ? cimplement.getBaseInforLevelFilePdf() : | |||
cimplement.getBaseInforLevelFile()); | |||
req.setBaseEngineerPostpoFile(StringUtils.isNotBlank(cimplement.getBaseEngineerPostpoFilePdf()) ? cimplement.getBaseEngineerPostpoFilePdf() : | |||
cimplement.getBaseEngineerPostpoFile()); | |||
req.setBaseEstaSummFile(StringUtils.isNotBlank(cimplement.getBaseEstaSummFilePdf()) ? cimplement.getBaseEstaSummFilePdf() : | |||
cimplement.getBaseEstaSummFile()); | |||
req.setBaseFinanlAuditFile(StringUtils.isNotBlank(cimplement.getBaseFinanlAuditFilePdf()) ? cimplement.getBaseFinanlAuditFilePdf() : | |||
cimplement.getBaseFinanlAuditFile()); | |||
req.setBaseFinalExpertOpinionFile(StringUtils.isNotBlank(cimplement.getBaseFinalExpertOpinionFilePdf()) ? cimplement.getBaseFinalExpertOpinionFilePdf() : | |||
cimplement.getBaseFinalExpertOpinionFile()); | |||
req.setBaseThirdAcceptFile(StringUtils.isNotBlank(cimplement.getBaseThirdAcceptFilePdf()) ? cimplement.getBaseThirdAcceptFilePdf() : | |||
cimplement.getBaseThirdAcceptFile()); | |||
req.setBaseInitialOpinionFile(StringUtils.isNotBlank(cimplement.getBaseInitialOpinionFilePdf()) ? cimplement.getBaseInitialOpinionFilePdf() : | |||
cimplement.getBaseInitialOpinionFile()); | |||
req.setBaseIrsTestRunFile(StringUtils.isNotBlank(cimplement.getBaseIrsTestRunFilePdf()) ? cimplement.getBaseIrsTestRunFilePdf() : | |||
cimplement.getBaseIrsTestRunFile()); | |||
return req; | |||
} | |||
public static ProjectApproveReq convertApprove(GovBizProjectApproveDTO approve) { | |||
ProjectApproveReq req = new ProjectApproveReq(); | |||
if(Objects.isNull(approve)){ | |||
@@ -151,6 +241,34 @@ public class ProjectConvert { | |||
return req; | |||
} | |||
public static ProjectApproveReq convertApproveVoWithConvertPdf(GovBizProjectApproveVO approve) { | |||
ProjectApproveReq req = new ProjectApproveReq(); | |||
if(Objects.isNull(approve)){ | |||
return req; | |||
} | |||
req.setBaseProjId(approve.getBaseProjId()); | |||
req.setBaseProjName(approve.getBaseProjName()); | |||
req.setOp(approve.getOp()); | |||
req.setApprovalFile(StringUtils.isNotBlank(approve.getApprovalFilePdf()) ? approve.getApprovalFilePdf() : | |||
approve.getApprovalFile()); | |||
req.setBaseReviewCommentsFile(StringUtils.isNotBlank(approve.getBaseReviewCommentsFilePdf()) ? approve.getBaseReviewCommentsFilePdf(): | |||
approve.getBaseReviewCommentsFile()); | |||
req.setPreliminaryDesignFile(StringUtils.isNotBlank(approve.getPreliminaryDesignFilePdf()) ? approve.getPreliminaryDesignFilePdf() : | |||
approve.getPreliminaryDesignFile()); | |||
req.setAreaCode(approve.getAreaCode()); | |||
req.setBaseDevelopCode(approve.getBaseDevelopCode()); | |||
req.setBaseExpertTotalMoney(String.valueOf(approve.getBaseExpertTotalMoney())); | |||
req.setBaseExpertYearMoney(String.valueOf(approve.getBaseExpertYearMoney())); | |||
req.setReleaseYearMoney(String.valueOf(approve.getReleaseYearMoney())); | |||
req.setBaseInitialReviewTotalMoney(String.valueOf(approve.getBaseInitialReviewTotalMoney())); | |||
req.setBaseReviewOpinion(approve.getBaseReviewOpinion()); | |||
req.setBaseReviewResults(approve.getBaseReviewResults()); | |||
req.setEqualProtectionLevel(approve.getEqualProtectionLevel()); | |||
req.setPreliminaryDesignScheme(approve.getPreliminaryDesignScheme()); | |||
req.setSetProjCodeFinan(approve.getSetProjCodeFinan()); | |||
return req; | |||
} | |||
public static ProjectApplyReq convertApply(GovBizProjectApplyDTO apply) { | |||
ProjectApplyReq req = new ProjectApplyReq(); | |||
if(Objects.isNull(apply)){ | |||
@@ -231,6 +349,51 @@ public class ProjectConvert { | |||
return req; | |||
} | |||
public static ProjectApplyReq convertApplyVoWithConvertPdf(GovBizProjectApplyVO apply) { | |||
ProjectApplyReq req = new ProjectApplyReq(); | |||
if(Objects.isNull(apply)){ | |||
return req; | |||
} | |||
req.setOp(apply.getOp()); | |||
req.setBaseProjId(apply.getBaseProjId()); | |||
req.setBaseProjName(apply.getBaseProjName()); | |||
req.setAreaCode(apply.getAreaCode()); | |||
req.setBaseAccountAppName(apply.getBaseAccountAppName()); | |||
req.setBaseBasisEstablish(apply.getBaseBasisEstablish()); | |||
req.setBaseCoreBusiness(apply.getBaseCoreBusiness()); | |||
req.setBaseCoreBusinessCode(apply.getBaseCoreBusinessCode()); | |||
req.setBaseBrainName(apply.getBaseBrainName()); | |||
req.setBaseDevelopCode(apply.getBaseDevelopCode()); | |||
req.setBaseLowestLevel(apply.getBaseLowestLevel()); | |||
req.setBaseHistorProjId(apply.getBaseHistorProjId()); | |||
req.setBaseHistorProjName(apply.getBaseHistorProjName()); | |||
req.setBaseOperatMaintenFile(StringUtils.isNotBlank(apply.getBaseOperatMaintenFilePdf()) ? apply.getBaseOperatMaintenFilePdf() : | |||
apply.getBaseOperatMaintenFile()); | |||
req.setBaseProjApplyFile(StringUtils.isNotBlank(apply.getBaseProjApplyFilePdf()) ? apply.getBaseProjApplyFilePdf() : | |||
apply.getBaseProjApplyFile()); | |||
req.setBaseProjBasisFile(StringUtils.isNotBlank(apply.getBaseProjBasisFilePdf()) ? apply.getBaseProjBasisFilePdf() : | |||
apply.getBaseProjBasisFile()); | |||
req.setBaseProjOtherFile(StringUtils.isNotBlank(apply.getBaseProjOtherFilePdf()) ? apply.getBaseProjOtherFilePdf() : | |||
apply.getBaseProjOtherFile()); | |||
req.setBaseResearchReportFile(StringUtils.isNotBlank(apply.getBaseResearchReportFilePdf()) ? apply.getBaseResearchReportFilePdf() : | |||
apply.getBaseResearchReportFile()); | |||
req.setBaseProjConsClass(apply.getBaseProjConsClass()); | |||
req.setBaseProjDuration(String.valueOf(apply.getBaseProjDuration())); | |||
req.setBaseProjIntro(apply.getBaseProjIntro()); | |||
req.setBaseProjStartTime(String.valueOf(apply.getBaseProjStartTime())); | |||
req.setBaseProjEndTime(String.valueOf(apply.getBaseProjEndTime())); | |||
req.setBaseProjSetYear(apply.getBaseProjSetYear()); | |||
req.setBaseProjSys(apply.getBaseProjSys()); | |||
req.setBaseProjSysCode(apply.getBaseDevelopCode()); | |||
req.setBaseProjDeclAmount(String.valueOf(apply.getBaseProjDeclAmount())); | |||
req.setBaseProjTotalAmount(String.valueOf(apply.getBaseProjTotalAmount())); | |||
req.setBaseBasisAmountOri(apply.getBaseBasisAmountOri()); | |||
req.setBaseProjAmountOri(apply.getBaseProjAmountOri()); | |||
req.setBaseProjRemark(apply.getBaseProjRemark()); | |||
req.setBeseExpectedResults(apply.getBeseExpectedResults()); | |||
return req; | |||
} | |||
public static ProjectBaseInfoReq convertBase(GovBizProjectBaseinfoDTO baseinfo,String isEffective) { | |||
ProjectBaseInfoReq req = BeanUtil.copyProperties(baseinfo,ProjectBaseInfoReq.class); | |||
req.setIsEffective(isEffective); | |||
@@ -31,24 +31,19 @@ import com.ningdatech.pmapi.user.entity.enumeration.RoleEnum; | |||
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails; | |||
import com.ningdatech.pmapi.user.util.LoginUserUtil; | |||
import com.ningdatech.pmapi.wps.manage.WpsConvertManage; | |||
import io.swagger.annotations.ApiModelProperty; | |||
import lombok.RequiredArgsConstructor; | |||
import lombok.extern.slf4j.Slf4j; | |||
import org.apache.commons.lang3.StringUtils; | |||
import org.apache.poi.ss.formula.functions.T; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.beans.factory.annotation.Value; | |||
import org.springframework.http.HttpEntity; | |||
import org.springframework.http.HttpHeaders; | |||
import org.springframework.http.MediaType; | |||
import org.springframework.http.ResponseEntity; | |||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; | |||
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; | |||
import org.springframework.stereotype.Component; | |||
import org.springframework.transaction.annotation.Transactional; | |||
import org.springframework.web.client.RestTemplate; | |||
import javax.annotation.Resource; | |||
import javax.annotation.Resources; | |||
import java.io.BufferedOutputStream; | |||
import java.io.File; | |||
import java.io.FileOutputStream; | |||
@@ -90,8 +85,7 @@ public class GovProjectCollectionManage { | |||
private final WpsConvertManage wpsConvertManage; | |||
@Resource | |||
private ThreadPoolTaskScheduler threadPoolTaskScheduler; | |||
private final ThreadPoolTaskScheduler threadPoolTaskScheduler; | |||
@Value("${project.push-url}") | |||
private String pushUrl; | |||
@@ -526,31 +520,40 @@ public class GovProjectCollectionManage { | |||
saveMimplement.setBizTime(LocalDateTime.now()); | |||
saveMimplement.setUpdateBy(user.getUsername()); | |||
saveMimplement.setUpdateOn(LocalDateTime.now()); | |||
mimplementService.saveOrUpdate(saveMimplement); | |||
if(mimplementService.saveOrUpdate(saveMimplement)){ | |||
threadPoolTaskScheduler.execute(() -> uploadFileToProvincialOssMimplement(mimplement,oldMimplement,saveMimplement)); | |||
} | |||
} | |||
// 6.保存 采购信息 | |||
List<GovBizProjectProcureDTO> procures = saveDTO.getProcures(); | |||
Integer index = 1; | |||
if(Objects.nonNull(procures)){ | |||
procureService.remove(Wrappers.lambdaQuery(GovBizProjectProcure.class) | |||
.eq(GovBizProjectProcure::getBaseProjId,baseProjId)); | |||
for(GovBizProjectProcureDTO procure : procures){ | |||
procure.setBaseProjId(baseProjId); | |||
procure.setBaseProjName(baseProjName); | |||
procure.setBaseBidCode(baseProjId + StrPool.DASH + index); | |||
GovBizProjectProcure saveProcure = BeanUtil.copyProperties(procure,GovBizProjectProcure.class); | |||
saveProcure.setBaseProjId(baseProjId); | |||
saveProcure.setId(null); | |||
saveProcure.setAreaCode(RegionConst.RC_LS); | |||
saveProcure.setTongTime(LocalDateTime.now()); | |||
saveProcure.setBizTime(LocalDateTime.now()); | |||
saveProcure.setUpdateBy(user.getUsername()); | |||
saveProcure.setUpdateOn(LocalDateTime.now()); | |||
procureService.save(saveProcure); | |||
index++; | |||
} | |||
String finalBaseProjId = baseProjId; | |||
UserInfoDetails finalUser = user; | |||
threadPoolTaskScheduler.execute(() -> { | |||
Integer index = 1; | |||
for(GovBizProjectProcureDTO procure : procures){ | |||
procure.setBaseProjId(finalBaseProjId); | |||
procure.setBaseProjName(baseProjName); | |||
procure.setBaseBidCode(finalBaseProjId + StrPool.DASH + index); | |||
GovBizProjectProcure saveProcure = BeanUtil.copyProperties(procure,GovBizProjectProcure.class); | |||
saveProcure.setBaseProjId(finalBaseProjId); | |||
saveProcure.setId(null); | |||
saveProcure.setAreaCode(RegionConst.RC_LS); | |||
saveProcure.setTongTime(LocalDateTime.now()); | |||
saveProcure.setBizTime(LocalDateTime.now()); | |||
saveProcure.setUpdateBy(finalUser.getUsername()); | |||
saveProcure.setUpdateOn(LocalDateTime.now()); | |||
if(procureService.save(saveProcure)){ | |||
uploadFileToProvincialOssProcure(procure,null,saveProcure); | |||
} | |||
index++; | |||
} | |||
}); | |||
} | |||
//7. 推送数据(改为定时推送了) | |||
@@ -756,7 +759,7 @@ public class GovProjectCollectionManage { | |||
} | |||
public void pushProjectVo(GovBizProjectDetailVO vo) { | |||
String url = pushUrl; | |||
ProjectPushReq req = ProjectConvert.convert(vo); | |||
ProjectPushReq req = ProjectConvert.convertWithConvertPdf(vo); | |||
try{ | |||
log.info("推送消息体 {} ,{},{}",vo.getBaseProjId(),url, JSON.toJSONString(req)); | |||
HttpHeaders headers = new HttpHeaders(); | |||
@@ -919,6 +922,72 @@ public class GovProjectCollectionManage { | |||
cimplementService.updateById(saveCimplement); | |||
} | |||
private void uploadFileToProvincialOssMimplement(GovBizProjectMimplementDTO mimplement, GovBizProjectMimplement oldMimplement, GovBizProjectMimplement saveMimplement) { | |||
if(checkFieldHas(mimplement.getBaseChanFile(),oldMimplement,"baseChanFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseChanFile()); | |||
saveMimplement.setBaseChanFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBaseInforLevelFile(),oldMimplement,"baseInforLevelFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseInforLevelFile()); | |||
saveMimplement.setBaseInforLevelFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBasePasswAssessFile(),oldMimplement,"basePasswAssessFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBasePasswAssessFile()); | |||
saveMimplement.setBasePasswAssessFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBaseThirdAcceptFile(),oldMimplement,"baseThirdAcceptFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseThirdAcceptFile()); | |||
saveMimplement.setBaseThirdAcceptFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBaseEstaSummFile(),oldMimplement,"baseEstaSummFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseEstaSummFile()); | |||
saveMimplement.setBaseEstaSummFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBaseUserConsFile(),oldMimplement,"baseUserConsFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseUserConsFile()); | |||
saveMimplement.setBaseUserConsFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBaseOperatMaintenSummFile(),oldMimplement,"baseOperatMaintenSummFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseOperatMaintenSummFile()); | |||
saveMimplement.setBaseOperatMaintenSummFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBaseFinalExpertOpinionFile(),oldMimplement,"baseFinalExpertOpinionFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseFinalExpertOpinionFile()); | |||
saveMimplement.setBaseFinalExpertOpinionFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBaseEngineerPostpoFile(),oldMimplement,"baseEngineerPostpoFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseEngineerPostpoFile()); | |||
saveMimplement.setBaseEngineerPostpoFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(mimplement.getBaseEngineerAlterFile(),oldMimplement,"baseEngineerAlterFile")){ | |||
StringJoiner sj = convertAndUpload(mimplement.getBaseEngineerAlterFile()); | |||
saveMimplement.setBaseEngineerAlterFilePdf(sj.toString()); | |||
} | |||
mimplementService.updateById(saveMimplement); | |||
} | |||
/** | |||
* 采购文件处理 | |||
* @param procure | |||
* @param o | |||
* @param saveProcure | |||
*/ | |||
private void uploadFileToProvincialOssProcure(GovBizProjectProcureDTO procure, Object o, GovBizProjectProcure saveProcure) { | |||
if(checkFieldHas(procure.getPurchaseFile(),o,"purchaseFile")){ | |||
StringJoiner sj = convertAndUpload(procure.getPurchaseFile()); | |||
saveProcure.setPurchaseFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(procure.getBiddingFile(),o,"biddingFile")){ | |||
StringJoiner sj = convertAndUpload(procure.getBiddingFile()); | |||
saveProcure.setBiddingFilePdf(sj.toString()); | |||
} | |||
if(checkFieldHas(procure.getPurchaseContract(),o,"purchaseContract")){ | |||
StringJoiner sj = convertAndUpload(procure.getPurchaseContract()); | |||
saveProcure.setPurchaseContractPdf(sj.toString()); | |||
} | |||
procureService.updateById(saveProcure); | |||
} | |||
private StringJoiner convertAndUpload(String baseProjBasisFile) { | |||
String[] baseProjBasisFileArr = baseProjBasisFile.split(";"); | |||
StringJoiner sj = new StringJoiner(";"); | |||
@@ -34,6 +34,10 @@ public class GovBizProjectDraft implements Serializable { | |||
private String baseConstructionType; | |||
private String baseProjSetProg; | |||
private String isEffective; | |||
@ApiModelProperty("是否省级 1省级 2非省级") | |||
private Integer baseProvManDeprtType; | |||
private String baseProvManDeprt; | |||
private String baseProvManDeprtDing; | |||
private String baseManDeprt; | |||
@@ -103,4 +103,34 @@ public class GovBizProjectMimplement implements Serializable { | |||
@ApiModelProperty("最后修改人") | |||
private String updateBy; | |||
@ApiModelProperty("信息安全等级保护测评报告PDF") | |||
private String baseInforLevelFilePdf; | |||
@ApiModelProperty("商业密码应用评估报告PDF") | |||
private String basePasswAssessFilePdf; | |||
@ApiModelProperty("第三方验收测试报告PDF") | |||
private String baseThirdAcceptFilePdf; | |||
@ApiModelProperty("用户使用报告PDF") | |||
private String baseUserConsFilePdf; | |||
@ApiModelProperty("监理总结报告PDF") | |||
private String baseEstaSummFilePdf; | |||
@ApiModelProperty("运维总结报告PDF") | |||
private String baseOperatMaintenSummFilePdf; | |||
@ApiModelProperty("终审意见PDF") | |||
private String baseFinalExpertOpinionFilePdf; | |||
@ApiModelProperty("项目延期申请表PDF") | |||
private String baseEngineerPostpoFilePdf; | |||
@ApiModelProperty("变更报告PDF") | |||
private String baseEngineerAlterFilePdf; | |||
@ApiModelProperty("变更批复文件PDF") | |||
private String baseChanFilePdf; | |||
} |
@@ -104,4 +104,13 @@ public class GovBizProjectProcure implements Serializable { | |||
@ApiModelProperty("最后修改人") | |||
private String updateBy; | |||
@ApiModelProperty("招标(采购)文件PDF") | |||
private String purchaseFilePdf; | |||
@ApiModelProperty("采购合同PDF") | |||
private String purchaseContractPdf; | |||
@ApiModelProperty("中标(成交)通知书PDF") | |||
private String biddingFilePdf; | |||
} |
@@ -144,4 +144,19 @@ public class GovBizProjectApplyVO implements Serializable { | |||
@ApiModelProperty("最后修改人") | |||
private String updateBy; | |||
@ApiModelProperty("立项依据材料PDF版") | |||
private String baseProjBasisFilePdf; | |||
@ApiModelProperty("项目申报书PDF版") | |||
private String baseProjApplyFilePdf; | |||
@ApiModelProperty("运维方案PDF版") | |||
private String baseOperatMaintenFilePdf; | |||
@ApiModelProperty("可研报告PDF版") | |||
private String baseResearchReportFilePdf; | |||
@ApiModelProperty("其它文件PDF版") | |||
private String baseProjOtherFilePdf; | |||
} |
@@ -94,4 +94,13 @@ public class GovBizProjectApproveVO implements Serializable { | |||
@ApiModelProperty("最后修改人") | |||
private String updateBy; | |||
@ApiModelProperty("立项批复文件") | |||
private String approvalFilePdf; | |||
@ApiModelProperty("评审意见附件PDF") | |||
private String baseReviewCommentsFilePdf; | |||
@ApiModelProperty("初步设计方案批复函PDF") | |||
private String preliminaryDesignFilePdf; | |||
} |
@@ -110,4 +110,46 @@ public class GovBizProjectCimplementVO implements Serializable { | |||
@ApiModelProperty("最后修改人") | |||
private String updateBy; | |||
@ApiModelProperty("生产批复文件PDF") | |||
private String baseChanFilePdf; | |||
@ApiModelProperty("初验意见PDF") | |||
private String baseInitialOpinionFilePdf; | |||
@ApiModelProperty("信息安全等级保护测评报告PDF") | |||
private String baseInforLevelFilePdf; | |||
@ApiModelProperty("'商业密码应用评估报告'") | |||
private String basePasswAssessFilePdf; | |||
@ApiModelProperty("第三方验收测试报告PDF") | |||
private String baseThirdAcceptFilePdf; | |||
@ApiModelProperty("建设核查表PDF") | |||
private String baseCheckFilePdf; | |||
@ApiModelProperty("财务审计报告PDF") | |||
private String baseFinanlAuditFilePdf; | |||
@ApiModelProperty("用户使用报告PDF") | |||
private String baseUserConsFilePdf; | |||
@ApiModelProperty("监理总结报告PDF") | |||
private String baseEstaSummFilePdf; | |||
@ApiModelProperty("IRS应用试运行报告PDF") | |||
private String baseIrsTestRunFilePdf; | |||
@ApiModelProperty("项目总结报告PDF") | |||
private String baseSummReportFilePdf; | |||
@ApiModelProperty("终审意见PDF") | |||
private String baseFinalExpertOpinionFilePdf; | |||
@ApiModelProperty("项目延期申请表PDF") | |||
private String baseEngineerPostpoFilePdf; | |||
@ApiModelProperty("变更申请单PDF") | |||
private String baseChangeFormFilePdf; | |||
} |
@@ -98,4 +98,34 @@ public class GovBizProjectMimplementVO implements Serializable { | |||
@ApiModelProperty("最后修改人") | |||
private String updateBy; | |||
@ApiModelProperty("信息安全等级保护测评报告PDF") | |||
private String baseInforLevelFilePdf; | |||
@ApiModelProperty("商业密码应用评估报告PDF") | |||
private String basePasswAssessFilePdf; | |||
@ApiModelProperty("第三方验收测试报告PDF") | |||
private String baseThirdAcceptFilePdf; | |||
@ApiModelProperty("用户使用报告PDF") | |||
private String baseUserConsFilePdf; | |||
@ApiModelProperty("监理总结报告PDF") | |||
private String baseEstaSummFilePdf; | |||
@ApiModelProperty("运维总结报告PDF") | |||
private String baseOperatMaintenSummFilePdf; | |||
@ApiModelProperty("终审意见PDF") | |||
private String baseFinalExpertOpinionFilePdf; | |||
@ApiModelProperty("项目延期申请表PDF") | |||
private String baseEngineerPostpoFilePdf; | |||
@ApiModelProperty("变更报告PDF") | |||
private String baseEngineerAlterFilePdf; | |||
@ApiModelProperty("变更批复文件PDF") | |||
private String baseChanFilePdf; | |||
} |
@@ -99,4 +99,13 @@ public class GovBizProjectProcureVO implements Serializable { | |||
@ApiModelProperty("最后修改人") | |||
private String updateBy; | |||
@ApiModelProperty("招标(采购)文件PDF") | |||
private String purchaseFilePdf; | |||
@ApiModelProperty("采购合同PDF") | |||
private String purchaseContractPdf; | |||
@ApiModelProperty("中标(成交)通知书PDF") | |||
private String biddingFilePdf; | |||
} |