|
|
@@ -11,6 +11,8 @@ import java.util.stream.Stream; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.ningdatech.basic.exception.BizException; |
|
|
|
import com.ningdatech.pmapi.projectlib.enumeration.BizDomainEnum; |
|
|
|
import com.ningdatech.pmapi.todocenter.constant.TodoCenterContant; |
|
|
|
import com.ningdatech.pmapi.todocenter.handle.PassHandle; |
|
|
|
import com.ningdatech.pmapi.todocenter.handle.WithDrawHandle; |
|
|
@@ -493,7 +495,12 @@ public class TodoCenterManage { |
|
|
|
Integer signType = req.getSignType(); |
|
|
|
signReq.setSignType(signType); |
|
|
|
// 调用盖章接口,获取盖章后返回的pdf文件字符数组 |
|
|
|
byte[] signPdf = IRSAPIRequest.createSignPdf(signReq); |
|
|
|
byte[] signPdf = new byte[0]; |
|
|
|
try { |
|
|
|
signPdf = IRSAPIRequest.createSignPdf(signReq); |
|
|
|
} catch (Exception e) { |
|
|
|
throw new BizException("调用IRS盖章接口失败,印章编号为:" + sealSn); |
|
|
|
} |
|
|
|
// 转换成MultipartFile |
|
|
|
MultipartFile multipartFile = new MockMultipartFile("file", originalFileName, "application/pdf", signPdf); |
|
|
|
// 上传OSS |
|
|
@@ -1139,10 +1146,19 @@ public class TodoCenterManage { |
|
|
|
paramsMap.put("fourSystems", fourSystem); |
|
|
|
// 获取是否数字化改革项目 |
|
|
|
String isDigitalReform = IsOrNotEnum.getDescByCode(project.getIsDigitalReform()); |
|
|
|
paramsMap.put("isDigitalReform", isDigitalReform); |
|
|
|
if (IsOrNotEnum.NOT.getDesc().equals(isDigitalReform)){ |
|
|
|
paramsMap.put("bizDomain", null); |
|
|
|
}else { |
|
|
|
paramsMap.put("bizDomain", BizDomainEnum.getDescByCode(project.getBizDomain())); |
|
|
|
} |
|
|
|
// 获取是否上云 |
|
|
|
String isCloud = IsOrNotEnum.getDescByCode(project.getIsCloud()); |
|
|
|
paramsMap.put("isCloud", isCloud); |
|
|
|
if (IsOrNotEnum.NOT.getDesc().equals(isCloud)){ |
|
|
|
paramsMap.put("cloudType", null); |
|
|
|
}else { |
|
|
|
paramsMap.put("cloudType",project.getCloudType()); |
|
|
|
} |
|
|
|
// 获取本年计划投资金额 |
|
|
|
BigDecimal yearPlanInvest = project.getAnnualPlanAmount(); |
|
|
|
paramsMap.put("yearPlanInvest",yearPlanInvest); |
|
|
|