REQ-3581: 补偿下载合同PDF

This commit is contained in:
yanglin 2025-02-25 15:32:25 +08:00
parent 46c9938926
commit 0e99f6d87a

View File

@ -211,6 +211,10 @@ public class EssService {
log.info("合同不需要下载PDF, contract={}", contract);
return;
}
if (contract.isFinalState() && StringUtils.isNotBlank(contract.getOssFileKey())) {
log.info("合同已是终态且已下载PDF, contract={}", contract);
return;
}
try {
String pdfUrl = getContractPDFUrlFromEss(contract);
String fileName = String.format("%s.pdf", contract.getContractName());