diff --git a/src/com/ample/esb/common/RCRequiredDataCheck.java b/src/com/ample/esb/common/RCRequiredDataCheck.java index 1dcecf5ac..b628be5ee 100644 --- a/src/com/ample/esb/common/RCRequiredDataCheck.java +++ b/src/com/ample/esb/common/RCRequiredDataCheck.java @@ -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;