diff --git a/src/com/ample/esb/check/AMPResutCheck.java b/src/com/ample/esb/check/AMPResutCheck.java index cbb444eb3..a607cbcbe 100644 --- a/src/com/ample/esb/check/AMPResutCheck.java +++ b/src/com/ample/esb/check/AMPResutCheck.java @@ -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);