Procházet zdrojové kódy

feat(交通银行):ocr识别

liutao před 2 měsíci
rodič
revize
d89258762d

+ 4 - 1
src/main/java/com/inkasso/factoring/creditmanagement/service/impl/ProjectInformationServiceImpl.java

@@ -16,6 +16,7 @@ import com.inkasso.factoring.creditmanagement.entity.*;
 import com.inkasso.factoring.creditmanagement.entity.vo.UserBiddingProjectsVo;
 import com.inkasso.factoring.creditmanagement.enums.ProjectAndEnterpriseStatusEnums;
 import com.inkasso.factoring.creditmanagement.enums.ProjectInitiationStatusDict;
+import com.inkasso.factoring.creditmanagement.enums.SupplierStatusEnums;
 import com.inkasso.factoring.creditmanagement.service.*;
 import com.inkasso.factoring.dict.entity.Dictionary;
 import com.inkasso.factoring.dict.service.DictionaryService;
@@ -404,7 +405,9 @@ public class ProjectInformationServiceImpl extends ServiceImpl<ProjectInformatio
                             if(estimatedAccountingPeriod == null){
                                 throw new ServiceException(CodeUtil.FAIL,"预估账期不能为空!");
                             }
-                            restTemplate.getForObject(startCreditResolutionOld + "?id=" + projectInformation.getId() + "&oldCoreEnterpriseId=" + projectCoreEnterprise.getOldCoreEnterpriseId() + "&estimatedAccountingPeriod=" +estimatedAccountingPeriod  , ResponseJson.class);
+                            if(supplierInfo.getStatus().equals(SupplierStatusEnums.CREDIT_SUCCESS.getCode())){
+                                restTemplate.getForObject(startCreditResolutionOld + "?id=" + projectInformation.getId() + "&oldCoreEnterpriseId=" + projectCoreEnterprise.getOldCoreEnterpriseId() + "&estimatedAccountingPeriod=" +estimatedAccountingPeriod  , ResponseJson.class);
+                            }
                         }
                     }else {
                         start = true;