|
@@ -4,6 +4,7 @@ import cn.hutool.json.JSONArray;
|
|
|
import cn.hutool.json.JSONObject;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.sunxung.factoring.component.constance.SupplierScoringModel;
|
|
|
+import com.sunxung.factoring.component.enums.SupplierStatusEnums;
|
|
|
import com.sunxung.factoring.component.exception.ServiceException;
|
|
|
import com.sunxung.factoring.component.exception.ValidatorException;
|
|
|
import com.sunxung.factoring.component.util.*;
|
|
@@ -169,6 +170,7 @@ public class SupplierApprovalFirstServiceImpl extends ServiceImpl<SupplierApprov
|
|
|
+ ConstantConversionUtil.flowBusinessKeyNames.get(ConstantUtil.SUPPLIER_INFO) + "—供应商审核第二步,"
|
|
|
+ ConstantUtil.FLOWABLE_MSG_ASSIGNEE);
|
|
|
}else {
|
|
|
+ supplierInfoService.lambdaUpdate().eq(SupplierInfo::getId,supplierInfo.getId()).set(SupplierInfo::getStatusStr, SupplierStatusEnums.VOTE.getCode()).update();
|
|
|
msgVariables.put(ConstantUtil.FLOWABLE_MSG_CONTENT,
|
|
|
"供应商名称为“" + enterprise.getCorporateName() + "”的供应商审核已被否决");
|
|
|
}
|
|
@@ -648,19 +650,16 @@ public class SupplierApprovalFirstServiceImpl extends ServiceImpl<SupplierApprov
|
|
|
.eq(CreditSituation::getcCreditInvestigationInfoHistoryId,creditSituation.getcCreditInvestigationInfoHistoryId())
|
|
|
.eq(CreditSituation::getcSupplierInfoId,supplierApprovalFirst.getcSupplierInfoId()).remove();
|
|
|
creditSituationService.save(creditSituation);
|
|
|
- if(creditSituation.getNumberOfOverdueAccounts() > 0){
|
|
|
+ //近两年发生过逾期的账户数≥3且合计金额≥5000元
|
|
|
+ if(creditSituation.getNumberOfOverdueAccounts() >= 3 && creditSituation.getTotalOverdueAmount().compareTo(new BigDecimal(5000)) > -1){
|
|
|
count ++;
|
|
|
}
|
|
|
- if(creditSituation.getTotalOverdueAmount().compareTo(BigDecimal.ZERO) == 1){
|
|
|
+ //发生过90天以上逾期的账户数≥1
|
|
|
+ if(creditSituation.getOverdue() >= 1){
|
|
|
count ++;
|
|
|
}
|
|
|
- if(creditSituation.getOverdue().equals(1)){
|
|
|
- count ++;
|
|
|
- }
|
|
|
- if(creditSituation.getConsecutiveOverdueMonth() > 0){
|
|
|
- count ++;
|
|
|
- }
|
|
|
- if(creditSituation.getAccumulatedOverdueTimes() > 0){
|
|
|
+ //近两年贷款、信用卡连续逾期月数>2个月且近两年逾期还款记录累计次数>5次
|
|
|
+ if(creditSituation.getConsecutiveOverdueMonth() > 2 && creditSituation.getAccumulatedOverdueTimes() > 5){
|
|
|
count ++;
|
|
|
}
|
|
|
if(creditSituation.getBadRecords().equals(1)){
|