风控中台-增加评分结果风险预警

This commit is contained in:
zhanglei@ap-leasing.com.cn 2023-09-14 13:27:09 +08:00
parent 936f21d63e
commit 21bf787829

View File

@ -6,6 +6,7 @@ import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.template.check.DefaultBussinessCheck;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP;
import jbo.oti.RC_SCORE_RESULT;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
@ -55,6 +56,27 @@ public class RCRequiredDataCheck extends DefaultBussinessCheck{
return null;
}
}
BizObject boRSR = JBOFactory.createBizObjectQuery(RC_SCORE_RESULT.CLASS_NAME,"select score_result_code,fraud_alert_code,fraud_taken_code from O where flow_no=:flowNo").setParameter("flowNo",ObjectNo).getSingleResult(false);
String socreCode = boRSR.getAttribute("score_result_code").toString();
String alertCode = boRSR.getAttribute("fraud_alert_code").toString();
String takenCode = boRSR.getAttribute("fraud_taken_code").toString();
if("".equals(socreCode)){
putMsg("请先评分获取评分结果");
setPass(false);
return null;
}
if("RR".equals(socreCode)||"RD".equals(socreCode)){
if("".equals(takenCode)){
putMsg("请先获取反欺诈人工判定结果");
setPass(false);
return null;
}
if("".equals(alertCode)){
putMsg("请先获取反欺诈预警结果");
setPass(false);
return null;
}
}
putMsg("验证通过!");
setPass(true);
return null;