|
@@ -29,6 +29,7 @@ import com.inkasso.factoring.purchManagement.entity.vo.PurchContractCompletedVo;
|
|
|
import com.inkasso.factoring.purchManagement.service.ICPurchContractManagementService;
|
|
|
import com.inkasso.factoring.system.user.entity.UserDO;
|
|
|
import com.inkasso.factoring.system.user.service.UserService;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
import org.apache.logging.log4j.Logger;
|
|
|
import org.apache.xpath.operations.Bool;
|
|
@@ -511,6 +512,9 @@ public class ProjectInformationServiceImpl extends ServiceImpl<ProjectInformatio
|
|
|
* @param projectCore 核心企业信息
|
|
|
*/
|
|
|
private List<String> qichacha(ProjectInformation projectInformation, Enterprise enterprise, ProjectCoreEnterprise projectCore) {
|
|
|
+ if(StringUtils.isEmpty(enterprise.getSocialCreditCode())){
|
|
|
+ throw new ServiceException(CodeUtil.FAIL,enterprise.getCorporateName() + "不存在统一社会信用代码,无法进行后续授信操作!");
|
|
|
+ }
|
|
|
List<String> error = new ArrayList<>();
|
|
|
//2006综合风险排查
|
|
|
String comprehensiveRiskInvestigationUrl = comprehensiveRiskInvestigation + "?socialCreditCode=" + enterprise.getSocialCreditCode();
|
|
@@ -535,6 +539,9 @@ public class ProjectInformationServiceImpl extends ServiceImpl<ProjectInformatio
|
|
|
BigDecimal zhixingAmount = comprehensiveRiskJsonObject.getBigDecimal("zhixingAmount");
|
|
|
enterprise.setBusinessAddress(annualAddress);
|
|
|
enterprise.setRegisteredCapital(registCapi);
|
|
|
+ if(StringUtils.isEmpty(registCapi)){
|
|
|
+ throw new ServiceException(CodeUtil.FAIL,enterprise.getCorporateName() + "不存在注册资本,无法进行后续授信操作!");
|
|
|
+ }
|
|
|
registCapi = registCapi.replace("万元人民币", "");
|
|
|
Double registCapiInt = Double.valueOf(registCapi);
|
|
|
long betweenYear = 0L;
|