REQ-3581: 加上上下文

This commit is contained in:
yanglin 2025-02-28 11:46:56 +08:00
parent 91b619077d
commit 6255732a4e
2 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,8 @@ public class SaveContractSnapshotRequest {
private String essContractId; private String essContractId;
/** /**
* 是否重复下载, 即已经下载过了, 但是需要重新下载 * 是否重复下载, 即已经下载过了, 但是需要重新下载.
* 如果合同已经是终状 retryDownload=true 也不会重新下载
*/ */
private boolean retryDownload = false; private boolean retryDownload = false;

View File

@ -205,6 +205,7 @@ public class EssService {
log.info("合同不需要下载PDF, contract={}", contract); log.info("合同不需要下载PDF, contract={}", contract);
return; return;
} }
// 终状的时间肯定无需重复下载
if (contract.isFinalState() && contract.isUploadedToOss()) { if (contract.isFinalState() && contract.isUploadedToOss()) {
log.info("合同已是终态且已下载PDF, contract={}", contract); log.info("合同已是终态且已下载PDF, contract={}", contract);
return; return;