北财风控对接-评分结果空指针问题
This commit is contained in:
parent
601aacd037
commit
2dc6852caf
@ -37,9 +37,20 @@ public class AMPResutCheck extends DefaultBussinessCheck{
|
||||
}
|
||||
|
||||
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(null == boRSR){
|
||||
// if("0040".equals(phasechoice)){
|
||||
// putMsg("验证通过!");
|
||||
// setPass(true);
|
||||
// return null;
|
||||
// }else {
|
||||
putMsg("请先评分获取评分结果!");
|
||||
setPass(false);
|
||||
return null;
|
||||
// }
|
||||
}
|
||||
String socreCode = null == boRSR.getAttribute("score_result_code") ? "" : boRSR.getAttribute("score_result_code").toString();
|
||||
String alertCode = null == boRSR.getAttribute("fraud_alert_code") ? "" : boRSR.getAttribute("fraud_alert_code").toString();
|
||||
String takenCode = null == boRSR.getAttribute("fraud_taken_code") ? "" : boRSR.getAttribute("fraud_taken_code").toString();
|
||||
if("".equals(socreCode)){
|
||||
putMsg("请先评分获取评分结果");
|
||||
setPass(false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user