REQ-3581: 补偿下载合同PDF
This commit is contained in:
parent
46c9938926
commit
0e99f6d87a
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user