Quellcode durchsuchen

兼容授权状态为空字符串

sakuya vor 3 Jahren
Ursprung
Commit
2f3cd75655

+ 3 - 3
eladmin-system/src/main/java/me/zhengjie/modules/system/executor/jobhandler/GenerateNotarizationJob.java

@@ -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());