From ee1a9672baadc4435cb4ff3c72a3c5d675ab47d7 Mon Sep 17 00:00:00 2001 From: "zhanglei@ap-leasing.com.cn" Date: Thu, 28 Sep 2023 13:53:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=8E=E6=8E=A7=E4=B8=AD=E5=8F=B0-=E9=A3=8E?= =?UTF-8?q?=E9=99=A9=E9=A2=84=E8=AD=A6-=E4=BF=A1=E5=AE=A1=E5=8F=8D?= =?UTF-8?q?=E9=A6=88=EF=BC=9A=E6=9C=AA=E8=AF=84=E5=88=86=E4=B9=9F=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E9=80=80=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/baic.properties | 6 ++++-- src/com/ample/esb/check/AMPResutCheck.java | 11 +++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config/baic.properties b/config/baic.properties index 89d052808..193af2156 100644 --- a/config/baic.properties +++ b/config/baic.properties @@ -1,3 +1,7 @@ +################################### +is_prd=false +################################### + # esb config esb_url=http://172.30.1.9:22201/baicfc/trans? userid=TYJWBY7F @@ -9,8 +13,6 @@ log_path=/data/esb/log/ afs_url=http://afsapf.rms.baicfc.com/Instinct.UI.WebClient_5.3.1/api/redirect? RSAPublicKey=/soft/apache-tomcat-7.0.90-7090-apzl/webapps/apzl_leasing/WEB-INF/classes/rsa_public_key.pem -is_prd=false - #test# esb_url_test=http://47.93.34.101/baicfc/trans? userid_test=TYJWBY7F diff --git a/src/com/ample/esb/check/AMPResutCheck.java b/src/com/ample/esb/check/AMPResutCheck.java index a607cbcbe..e0b4051d2 100644 --- a/src/com/ample/esb/check/AMPResutCheck.java +++ b/src/com/ample/esb/check/AMPResutCheck.java @@ -1,19 +1,14 @@ package com.ample.esb.check; import com.amarsoft.are.jbo.BizObject; -import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.awe.util.ASResultSet; import com.amarsoft.awe.util.SqlObject; import com.amarsoft.awe.util.Transaction; import com.tenwa.template.check.DefaultBussinessCheck; -import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT; import jbo.oti.RC_SCORE_RESULT; -import jbo.sys.FLOW_TASK; import org.apache.commons.lang3.StringUtils; -import java.util.List; - /** * 风控中台结果校验 * @@ -35,7 +30,11 @@ public class AMPResutCheck extends DefaultBussinessCheck{ phasechoice = result.getString("phasechoice"); phaseOpinion = result.getString("phaseopinion"); } - + if("0040".equals(phasechoice)){ + putMsg("验证通过!"); + setPass(true); + 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); if(null == boRSR){ // if("0040".equals(phasechoice)){