北财风控对接-反欺诈判断描述添加
This commit is contained in:
parent
cfef19e24a
commit
10c4a7ff80
@ -767,6 +767,9 @@
|
||||
<attribute name="fraud_alert_code" label="反欺诈预警结果:H、S、C" type="STRING" length="32"/>
|
||||
<attribute name="fraud_taken_code" label="反欺诈判定结果:F、K、S、空" type="STRING" length="32"/>
|
||||
<attribute name="score_result_code" label="评分结果 AA RR RD DD" type="STRING" length="32"/>
|
||||
<attribute name="fraud_alert_value" label="反欺诈预警结果:H、S、C" type="STRING" length="32"/>
|
||||
<attribute name="fraud_taken_value" label="反欺诈判定结果:F、K、S、空" type="STRING" length="32"/>
|
||||
<attribute name="score_result_value" label="评分结果 AA RR RD DD" type="STRING" length="32"/>
|
||||
<attribute name="score_result_url" label="评分结果报告页" type="STRING" length="255"/>
|
||||
<attribute name="input_time" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="update_time" label="更新时间" type="STRING" length="32"/>
|
||||
|
||||
@ -4,6 +4,9 @@ import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.amarsoft.are.ARE;
|
||||
import com.amarsoft.are.jbo.*;
|
||||
import com.amarsoft.dict.als.manage.CodeManager;
|
||||
import com.ample.esb.common.ParamDataUtils;
|
||||
import com.ample.esb.common.cache.EsbParamCache;
|
||||
import com.ample.esb.util.BaicPropertiesUtil;
|
||||
import com.ample.sms.FileUtil;
|
||||
import com.tenwa.httpclient.pboc.PbocXmlUtils;
|
||||
@ -98,19 +101,23 @@ public class WriteScoreResultThread extends Thread{
|
||||
}
|
||||
ARE.getLog().info("WriteScoreResultThread#saveUpdateScoreResult:tranNo=" + tranNo);
|
||||
// : 2023-8-24 解析结果
|
||||
|
||||
String resultId = UUIDUtil.getUUID();
|
||||
JSONObject blazeResultJson = resJson.getJSONObject("BLAZERESULT");//评分结果项
|
||||
String resultCode = blazeResultJson.getString("RESULT_CODE");// 评分结果状态 1000为成功,其他失败
|
||||
String result = blazeResultJson.getString("RESULT");//评分结果 AA RR RD DD
|
||||
String resultValue = CodeManager.getItemName("rc_score_result", result);;
|
||||
String thirdResultUrl = BaicPropertiesUtil.get("rc_score_result_url") + "?applicationNo=" + projectNo
|
||||
+ "&transNo=" + tranNo;
|
||||
JSONObject fraudResultJson = resJson.getJSONObject("FRAUD_RESULT");// 反欺诈结果
|
||||
String fraudAlert = null;// 反欺诈预警结果:H、S、C
|
||||
String actionTaken = null;// 反欺诈判定结果:F、K、S、空
|
||||
String fraudAlertValue = null;// 反欺诈预警结果:H、S、C
|
||||
String actionTakenValue = null;// 反欺诈判定结果:F、K、S、空
|
||||
if(null != fraudResultJson){
|
||||
fraudAlert = fraudResultJson.getString("FRAUD_ALERT");// 反欺诈预警结果:H、S、C
|
||||
actionTaken = fraudResultJson.getString("ACTION_TAKEN");// 反欺诈判定结果:F、K、S、空
|
||||
fraudAlertValue = CodeManager.getItemName("rc_score_fraud_alert", fraudAlert); // 反欺诈预警结果:H、S、C
|
||||
actionTakenValue = CodeManager.getItemName("rc_score_action_taken", actionTaken); // 反欺诈判定结果:F、K、S、空
|
||||
}else {
|
||||
ARE.getLog().error("WriteScoreResultThread#saveUpdateScoreResult ---FRAUD_ALERT-【反欺诈结果为空】-----------》:tranNo=" + tranNo);
|
||||
}
|
||||
@ -132,6 +139,10 @@ public class WriteScoreResultThread extends Thread{
|
||||
rcScoreResultBizObject.setAttributeValue("score_result_url", thirdResultUrl);// 评分结果报告
|
||||
rcScoreResultBizObject.setAttributeValue("fraud_alert_code", fraudAlert);// 反欺诈预警结果:H、S、C
|
||||
rcScoreResultBizObject.setAttributeValue("fraud_taken_code", actionTaken);// 反欺诈判定结果:F、K、S、空
|
||||
|
||||
rcScoreResultBizObject.setAttributeValue("score_result_value", resultValue);// 反欺诈判定结果:F、K、S、空
|
||||
rcScoreResultBizObject.setAttributeValue("fraud_alert_value", fraudAlertValue);// 反欺诈判定结果:F、K、S、空
|
||||
rcScoreResultBizObject.setAttributeValue("fraud_taken_value", actionTakenValue);// 反欺诈判定结果:F、K、S、空
|
||||
rcScoreResultBizObject.setAttributeValue("update_time", date);
|
||||
rcScoreResult.saveObject(rcScoreResultBizObject);
|
||||
|
||||
|
||||
@ -51,7 +51,22 @@ public interface RC_SCORE_RESULT {
|
||||
* 评分结果 AA RR RD DD
|
||||
*/
|
||||
public static final String score_result_code = "score_result_code";
|
||||
/**
|
||||
* 反欺诈预警结果:H、S、C
|
||||
*/
|
||||
public static final String fraud_alert_value = "fraud_alert_value";
|
||||
|
||||
|
||||
/**
|
||||
* 反欺诈判定结果:F、K、S、空
|
||||
*/
|
||||
public static final String fraud_taken_value = "fraud_taken_value";
|
||||
|
||||
|
||||
/**
|
||||
* 评分结果 AA RR RD DD
|
||||
*/
|
||||
public static final String score_result_value = "score_result_value";
|
||||
/**
|
||||
* 评分结果报告页
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user