|
|
@@ -79,7 +79,7 @@ public class GenerateNotarizationJob {
|
|
|
List<OrderFileEntity> orderFileList = orderFileRepository.canBeSignedNotarization(collection);
|
|
|
for (OrderFileEntity orderFile : orderFileList) {
|
|
|
try {
|
|
|
- if(StringUtils.isEmpty(orderFile.getDocNo())) {
|
|
|
+ if(StringUtils.isEmpty(orderFile.getAxqContractNo())) {
|
|
|
signNotarization(orderFile);
|
|
|
}
|
|
|
if(StringUtils.isEmpty(orderFile.getSignedPdfUrl())) {
|
|
|
@@ -141,9 +141,9 @@ public class GenerateNotarizationJob {
|
|
|
* @param orderFile
|
|
|
*/
|
|
|
private void downloadNotarization(OrderFileEntity orderFile) throws Exception {
|
|
|
- String orderType = StepStatusEnum.getType(Integer.valueOf(orderFile.getContractId()));
|
|
|
+ String orderType = StepStatusEnum.getType(orderFile.getContractId());
|
|
|
CFCACertUtil.proxySwitchOn = "dev".equals(AppConfigInfo.APP_ENV_TYPE);
|
|
|
- String uplaodPath = orderFile.getBusinessNo() + "/" + orderType + "/" ;
|
|
|
+ String uplaodPath = orderFile.getBusinessNo() + "/" + orderType + "/";
|
|
|
String path = uplaodPath + "notary-signed-" + orderFile.getBusinessNo() + "/";
|
|
|
String filePath = CFCACertUtil.download(path, orderFile.getAxqContractNo());
|
|
|
saveAuthNorizationUrlById(filePath, orderFile.getId());
|