Merge branch 'develop' of http://git2.tenwa.com.cn/ApzlDev/apzl_leasing.git into jianghd
This commit is contained in:
commit
989173582d
@ -6,12 +6,14 @@
|
||||
History Log:
|
||||
*/
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||||
String retainfield = CurPage.getParameter("CertId");//查询条件编号
|
||||
System.err.println(retainfield);
|
||||
ASObjectModel doTemp = new ASObjectModel("LbCarCreditRiskShow");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid+","+retainfield);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
|
||||
@ -21,7 +21,6 @@
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function creditVerification(){
|
||||
var pUrl = "/Tenwa/Lease/Flow/Comm/LBPreLoanAntiFraud/LBCarCreditRiskShow.jsp";
|
||||
var sFlowUnid = "<%=sFlowUnid%>";
|
||||
alert(sFlowUnid);
|
||||
var result = RunJavaMethodTrans("com.tenwa.comm.credit.CreditBodyGuardAction","doCreditVerification","flowunid="+sFlowUnid);
|
||||
@ -35,7 +34,8 @@
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBPreLoanAntiFraud/LBCarCreditRiskShow.jsp";
|
||||
var sparam="FlowUnid="+'<%=sFlowUnid%>';
|
||||
var certid = getItemValue(0,getRow(0),"CERTID");
|
||||
var sparam="FlowUnid="+"<%=sFlowUnid%>"+"&CertId="+certid;
|
||||
AsControl.OpenView(sUrl,sparam,"_self","");
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -9,6 +9,7 @@ import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_CALLRESULT_TEMP;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_PETITIONER_HOMEANALYSIS;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_RISKITEM_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@ -39,12 +40,13 @@ public class CreditBodyGuardAction {
|
||||
public String doCreditVerification(JBOTransaction tx) throws JBOException{
|
||||
try {
|
||||
BizObjectManager bom1 = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager bom2 = JBOFactory.getBizObjectManager(LB_CAR_CREDIT_CALLRESULT_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager bom2 = JBOFactory.getBizObjectManager(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, tx);
|
||||
//BizObjectManager bom2 = JBOFactory.getBizObjectManager(LB_CAR_CREDIT_CALLRESULT_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager bom3 = JBOFactory.getBizObjectManager(LB_CAR_CREDIT_RISKITEM_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager bom4 = JBOFactory.getBizObjectManager(CUSTOMER_FAMILY_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager bom5 = JBOFactory.getBizObjectManager(LB_CAR_CREDIT_PETITIONER_HOMEANALYSIS.CLASS_NAME, tx);
|
||||
//每次点击信贷校验按钮根据流程编号查询结果表,该流程是否已经进行过校验,避免多次校验
|
||||
BizObject queryResult = bom2.createQuery("select final_score from O where flowunid=:FLOWUNID").setParameter("FLOWUNID",flowunid).getSingleResult(false);
|
||||
BizObject queryResult = bom3.createQuery("select retainfield2 from O where flowunid=:FLOWUNID").setParameter("FLOWUNID",flowunid).getSingleResult(false);
|
||||
//首先通过流程编号到征信结果表查,如果存在记录则不允许再次执行
|
||||
if(queryResult != null){
|
||||
return "征信校验已执行过,不可重复执行";
|
||||
@ -60,13 +62,12 @@ public class CreditBodyGuardAction {
|
||||
"AND O.BALANCESHEET = '申请人' ").setParameter("FLOWUNID",flowunid).getSingleResult(false);
|
||||
//查询担保人
|
||||
@SuppressWarnings("unchecked")
|
||||
List<BizObject> guarantorResultList = bom1.createQuery("SELECT "+
|
||||
List<BizObject> guarantorResultList = bom2.createQuery("SELECT "+
|
||||
"fullname,"+
|
||||
"mobile,"+
|
||||
"certid "+
|
||||
"FROM "+
|
||||
"O WHERE flowunid=:FLOWUNID "+
|
||||
"AND BALANCESHEET = '担保人' ").setParameter("FLOWUNID",flowunid).getResultList(false);
|
||||
"O WHERE flowunid=:FLOWUNID").setParameter("FLOWUNID",flowunid).getResultList(false);
|
||||
//查询共同借款人
|
||||
BizObject coborrowerResult = bom4.createQuery("SELECT "+
|
||||
"name,"+
|
||||
@ -77,7 +78,6 @@ public class CreditBodyGuardAction {
|
||||
"FROM "+
|
||||
"O WHERE flowunid=:FLOWUNID AND Partner_ = 'Y'").setParameter("FLOWUNID", flowunid).getSingleResult(false);
|
||||
if(coborrowerResult != null && guarantorResultList !=null){
|
||||
BizObject resultObject = bom2.newObject();
|
||||
BodyGuardApiInvoker bodyGuardApiInvoker = new BodyGuardApiInvoker();
|
||||
Map<String,Object> params = new HashMap<>();
|
||||
//工作流编号
|
||||
@ -125,11 +125,11 @@ public class CreditBodyGuardAction {
|
||||
JSONObject object = JSONObject.parseObject(ResponseResult.getResult_desc());
|
||||
//JSON结果对象
|
||||
JSONObject resultobject = (JSONObject) object.get("ANTIFRAUD");
|
||||
resultObject.setAttributeValue("entryid",ResponseResult.getId());
|
||||
/* resultObject.setAttributeValue("entryid",ResponseResult.getId());
|
||||
resultObject.setAttributeValue("final_score", resultobject.get("final_score"));
|
||||
resultObject.setAttributeValue("final_decision", resultobject.get("final_decision"));
|
||||
resultObject.setAttributeValue("flowunid",flowunid);
|
||||
bom2.saveObject(resultObject);
|
||||
bom2.saveObject(resultObject);*/
|
||||
//申请人信息归属地解析
|
||||
JSONObject object1 = (JSONObject) object.get("INFOANALYSIS");
|
||||
JSONObject object2 = (JSONObject) object1.get("address_detect");
|
||||
@ -154,10 +154,18 @@ public class CreditBodyGuardAction {
|
||||
detailObject.setAttributeValue("entryid",ResponseResult.getId());
|
||||
//规则编号
|
||||
detailObject.setAttributeValue("rule_id",riskItemList.get(i).get("rule_id"));
|
||||
//分数
|
||||
detailObject.setAttributeValue("score",riskItemList.get(i).get("score"));
|
||||
//风险细节分数
|
||||
detailObject.setAttributeValue("score", riskItemList.get(i).get("score"));
|
||||
//最终决定
|
||||
detailObject.setAttributeValue("decision",riskItemList.get(i).get("decision"));
|
||||
String decision = "";
|
||||
if("REJECT".equals(resultobject.get("final_decision").toString())){
|
||||
decision = "拒绝";
|
||||
}else if("PASS".equals(resultobject.get("final_decision").toString())){
|
||||
decision = "通过";
|
||||
}
|
||||
detailObject.setAttributeValue("retainfield2", "风险建议:"+decision);
|
||||
//分数
|
||||
detailObject.setAttributeValue("retainfield3","风险总分数:"+resultobject.get("final_score"));
|
||||
//风险名称
|
||||
detailObject.setAttributeValue("risk_name",riskItemList.get(i).get("risk_name"));
|
||||
if("身份证归属地位于高风险较为集中地区".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@ -166,6 +174,7 @@ public class CreditBodyGuardAction {
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+ riskItemList.get(i).get("risk_name").toString().substring(8)+":"
|
||||
+detailList.get(0).get("high_risk_areas").toString().replace("[", "").replace("]","")+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中法院失信名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -186,12 +195,14 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+StringUtil.nullToString(detailList.get(0).get("fraud_type_display_name"),"")+"。"
|
||||
+"匹配字段:"+StringUtil.nullToString(detailList.get(0).get("hit_type_display_name"),"")+"。"
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中犯罪通缉名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name")+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中法院执行名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -212,12 +223,14 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证对应人存在助学贷款欠费历史".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中信贷逾期名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -234,18 +247,21 @@ public class CreditBodyGuardAction {
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"逾期次数:"+detailList.get(0).get("discredit_times").toString()+"。"
|
||||
+"详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中高风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中车辆租赁违约名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中法院结案名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -274,6 +290,7 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:"+sb.toString().substring(0,sb.length()-1)+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证_姓名命中信贷逾期模糊名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -283,6 +300,7 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+fuzzyList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"姓名:"+fuzzyList.get(0).get("fuzzy_name").toString()+"。"
|
||||
+"模糊身份证:"+fuzzyList.get(0).get("fuzzy_id_number").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证_姓名命中法院失信模糊名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -292,6 +310,7 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+fuzzyList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"姓名:"+fuzzyList.get(0).get("fuzzy_name").toString()+"。"
|
||||
+"模糊身份证:"+fuzzyList.get(0).get("fuzzy_id_number").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证_姓名命中法院执行模糊名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -301,6 +320,7 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+fuzzyList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"姓名:"+fuzzyList.get(0).get("fuzzy_name").toString()+"。"
|
||||
+"模糊身份证:"+fuzzyList.get(0).get("fuzzy_id_number").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证_姓名命中法院结案模糊名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -310,60 +330,70 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+fuzzyList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"姓名:"+fuzzyList.get(0).get("fuzzy_name").toString()+"。"
|
||||
+"模糊身份证:"+fuzzyList.get(0).get("fuzzy_id_number").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中欠款公司法人代表名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中故意违章乘车名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中欠税名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中欠税公司法人代表名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("身份证命中信贷逾期后还款名单".equals(riskItemList.get(i).get("risk_detail"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("手机号命中虚假号码库".equals(riskItemList.get(i).get("risk_detail"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("手机号命中通信小号库".equals(riskItemList.get(i).get("risk_detail"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("手机号命中诈骗骚扰库".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("手机号命中高风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("手机号命中信贷逾期名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -380,6 +410,7 @@ public class CreditBodyGuardAction {
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"逾期次数:"+detailList.get(0).get("discredit_times").toString()+"。"
|
||||
+"详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("手机号疑似乱填".equals(riskItemList.get(i).get("risk_name"))){
|
||||
msg = "";
|
||||
}else if("手机号命中车辆租赁违约名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@ -388,18 +419,21 @@ public class CreditBodyGuardAction {
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("手机号命中欠款公司法人代表名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("手机号命中信贷逾期后还款名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("3个月内身份证关联多个申请信息".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -412,6 +446,7 @@ public class CreditBodyGuardAction {
|
||||
}
|
||||
msg = "频度规则详情:"+frequencydetailList.get(0).get("detail").toString()+",详细:"
|
||||
+ "("+sb.toString().substring(0,sb.length()-1)+")";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("3个月内申请信息关联多个身份证".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -424,24 +459,28 @@ public class CreditBodyGuardAction {
|
||||
}
|
||||
msg = "频度规则详情:"+frequencydetailList.get(0).get("detail").toString()+",详细:"
|
||||
+ "("+sb.toString().substring(0,sb.length()-1)+")";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("3个月内申请人身份证作为联系人身份证出现的次数过多".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> crossfrequencydetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("cross_frequency_detail_list")),HashMap.class);
|
||||
msg = "详情:"+crossfrequencydetailList.get(0).get("detail").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("3个月内申请人手机号作为联系人手机号出现的次数过多".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> crossfrequencydetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("cross_frequency_detail_list")),HashMap.class);
|
||||
msg = "详情:"+crossfrequencydetailList.get(0).get("detail").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("7天内设备或身份证或手机号申请次数过多".equals(riskItemList.get(i).get("risk_detail"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> frequencydetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("frequency_detail_list")),HashMap.class);
|
||||
msg = "详情:"+frequencydetailList.get(0).get("detail").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("7天内申请人在多个平台申请借款".equals(riskItemList.get(i).get("risk_detail"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -476,6 +515,7 @@ public class CreditBodyGuardAction {
|
||||
.get("count").toString()+","+sb2.toString().substring(0,sb2.length()-1)+"),("
|
||||
+platformdetaildimensionList.get(1).get("dimension").toString()+"总个数:"+platformdetaildimensionList.get(1)
|
||||
.get("count").toString()+","+sb3.toString().substring(0, sb3.length()-1)+")";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("1个月内申请人在多个平台申请借款".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -510,6 +550,7 @@ public class CreditBodyGuardAction {
|
||||
.get("count").toString()+","+sb2.toString().substring(0,sb2.length()-1)+"),("
|
||||
+platformdetaildimensionList.get(1).get("dimension").toString()+"总个数:"+platformdetaildimensionList.get(1)
|
||||
.get("count").toString()+","+sb3.toString().substring(0, sb3.length()-1)+")";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("3个月内申请人在多个平台申请借款".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -544,24 +585,28 @@ public class CreditBodyGuardAction {
|
||||
.get("count").toString()+","+sb2.toString().substring(0,sb2.length()-1)+"),("
|
||||
+platformdetaildimensionList.get(1).get("dimension").toString()+"总个数:"+platformdetaildimensionList.get(1)
|
||||
.get("count").toString()+","+sb3.toString().substring(0, sb3.length()-1)+")";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("申请人信息命中中风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("申请人信息命中低风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",borrowerResult.getAttribute("certid").getString());
|
||||
}else if("担保人身份证命中信贷逾期后还款名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(0).getAttribute("certid").getString());
|
||||
}else if("担保人身份证命中法院失信名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -588,12 +633,14 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(0).getAttribute("certid").getString());
|
||||
}else if("担保人身份证命中犯罪通缉名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(0).getAttribute("certid").getString());
|
||||
}else if("担保人身份证命中法院执行名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -617,6 +664,31 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(0).getAttribute("certid").getString());
|
||||
}else if("担保人身份证命中法院结案名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for(int j=0;j<courtdetailList.size();j++){
|
||||
if(courtdetailList.get(j).get("execute_court")!=null){
|
||||
sb.append(
|
||||
"(被执行人姓名:"+StringUtil.nullToString(courtdetailList.get(j).get("executed_name"),"")+","
|
||||
+"风险类型:"+StringUtil.nullToString(courtdetailList.get(j).get("fraud_type_display_name"),"")+","
|
||||
+"命中的属性值:"+StringUtil.nullToString(courtdetailList.get(j).get("value"),"")+","
|
||||
+"执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("execute_court"),"")+","
|
||||
+"立案时间:"+StringUtil.nullToString(courtdetailList.get(j).get("case_date"),"")+","
|
||||
+"案号:"+StringUtil.nullToString(courtdetailList.get(j).get("case_code"),"")+","
|
||||
+"做出依据执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("evidence_court"),"")+"),"
|
||||
);
|
||||
}
|
||||
}
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(0).getAttribute("certid").getString());
|
||||
}else if("担保人身份证命中信贷逾期名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -627,12 +699,21 @@ public class CreditBodyGuardAction {
|
||||
+"逾期金额:"+overdueList.get(0).get("overdue_amount_range").toString()+"。"
|
||||
+"逾期天数:"+overdueList.get(0).get("overdue_day_range").toString()+"。"
|
||||
+"逾期入库时间:"+overdueList.get(0).get("overdue_time").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(0).getAttribute("certid").getString());
|
||||
}else if("担保人手机号命中欠款公司法人代表名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(0).getAttribute("certid").getString());
|
||||
}else if("担保人手机号命中通信小号库".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(0).getAttribute("certid").getString());
|
||||
}else if("第二担保人身份证命中法院结案名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -659,27 +740,44 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(1).getAttribute("certid").getString());
|
||||
}else if("第二担保人身份证命中法院执行名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for(int j=0;j<courtdetailList.size();j++){
|
||||
sb.append(
|
||||
"(被执行人姓名:"+StringUtil.nullToString(courtdetailList.get(j).get("executed_name"),"")+","
|
||||
+"风险类型:"+StringUtil.nullToString(courtdetailList.get(j).get("fraud_type_display_name"),"")+","
|
||||
+"命中的属性值:"+StringUtil.nullToString(courtdetailList.get(j).get("value"),"")+","
|
||||
+"执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("execute_court"),"")+","
|
||||
+"立案时间:"+StringUtil.nullToString(courtdetailList.get(j).get("case_date"),"")+","
|
||||
+"案号:"+StringUtil.nullToString(courtdetailList.get(j).get("case_code"),"")+","
|
||||
+"做出依据执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("evidence_court"),"")+"),"
|
||||
);
|
||||
for(int j=0;j<courtdetailList.size();j++){
|
||||
sb.append(
|
||||
"(被执行人姓名:"+StringUtil.nullToString(courtdetailList.get(j).get("executed_name"),"")+","
|
||||
+"性别:"+StringUtil.nullToString(courtdetailList.get(j).get("gender"),"")+","
|
||||
+"年龄:"+StringUtil.nullToString(courtdetailList.get(j).get("age"), "")+","
|
||||
+"风险类型:"+StringUtil.nullToString(courtdetailList.get(j).get("fraud_type_display_name"),"")+","
|
||||
+"命中的属性值:"+StringUtil.nullToString(courtdetailList.get(j).get("value"),"")+","
|
||||
+"执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("execute_court"),"")+","
|
||||
+ "执行依据文号:"+StringUtil.nullToString(courtdetailList.get(j).get("execute_code"),"")+","
|
||||
+"立案时间:"+StringUtil.nullToString(courtdetailList.get(j).get("case_date"),"")+","
|
||||
+"案号:"+StringUtil.nullToString(courtdetailList.get(j).get("case_code"),"")+","
|
||||
+"做出依据执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("evidence_court"),"")+","
|
||||
+"被执行人履行情况:"+StringUtil.nullToString(courtdetailList.get(j).get("carry_out"),"")+","
|
||||
+"信贷逾期被执行人行为具体情形:"+StringUtil.nullToString(courtdetailList.get(j).get("specific_circumstances"),"")+"),"
|
||||
);
|
||||
}
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:["+sb.toString().substring(0, sb.length()-1)+"。]";
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(1).getAttribute("certid").getString());
|
||||
}else if("第二担保人身份证_姓名命中法院失信模糊名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> fuzzyList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("fuzzy_list_details")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+fuzzyList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"姓名:"+fuzzyList.get(0).get("fuzzy_name").toString()+"。"
|
||||
+"模糊身份证:"+fuzzyList.get(0).get("fuzzy_id_number").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(1).getAttribute("certid").getString());
|
||||
}else if("第二担保人身份证命中信贷逾期名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -690,18 +788,37 @@ public class CreditBodyGuardAction {
|
||||
+"逾期金额:"+overdueList.get(0).get("overdue_amount_range").toString()+"。"
|
||||
+"逾期天数:"+overdueList.get(0).get("overdue_day_range").toString()+"。"
|
||||
+"逾期入库时间:"+overdueList.get(0).get("overdue_time").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(1).getAttribute("certid").getString());
|
||||
}else if("第二担保人手机号命中信贷逾期名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> overdueList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("overdue_details")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"逾期次数:"+detailList.get(0).get("discredit_times").toString()+"。"
|
||||
+"逾期金额:"+overdueList.get(0).get("overdue_amount_range").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(1).getAttribute("certid").getString());
|
||||
}else if("第二担保人手机号命中通信小号库".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(1).getAttribute("certid").getString());
|
||||
}else if("第二担保人身份证命中高风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(1).getAttribute("certid").getString());
|
||||
}else if("第三担保人身份证命中高风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("第三担保人身份证命中法院执行名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -723,6 +840,7 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:["+sb.toString().substring(0, sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("第三担保人身份证_姓名命中法院失信模糊名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -732,6 +850,7 @@ public class CreditBodyGuardAction {
|
||||
+"风险类型:"+fuzzyList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"姓名:"+fuzzyList.get(0).get("fuzzy_name").toString()+"。"
|
||||
+"模糊身份证:"+fuzzyList.get(0).get("fuzzy_id_number").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("第三担保人手机号命中信贷逾期名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@ -748,6 +867,119 @@ public class CreditBodyGuardAction {
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"逾期次数:"+detailList.get(0).get("discredit_times").toString()+"。"
|
||||
+"详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("第三担保人身份证命中信贷逾期后还款名单".equals(riskItemList.get(i).get("risk_detail"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("第三担保人身份证命中法院失信名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for(int j=0;j<courtdetailList.size();j++){
|
||||
sb.append("(风险类型:"+StringUtil.nullToString(courtdetailList.get(j).get("fraud_type_display_name"),"")+","
|
||||
+"命中的属性值:"+StringUtil.nullToString(courtdetailList.get(j).get("value"),"")+","
|
||||
+"执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("execute_court"),"")+","
|
||||
+"立案时间:"+StringUtil.nullToString(courtdetailList.get(j).get("case_date"),"")+","
|
||||
+"做出依据执行法院: "+StringUtil.nullToString(courtdetailList.get(j).get("evidence_court"),"")+","
|
||||
+"被执行人履行情况: "+StringUtil.nullToString(courtdetailList.get(j).get("carry_out"),"")+","
|
||||
+"信贷逾期被执行人行为具体情形:"+StringUtil.nullToString(courtdetailList.get(j).get("specific_circumstances"),"")
|
||||
+"),");
|
||||
}
|
||||
msg = "规则描述:"+StringUtil.nullToString(detailList.get(0).get("description"),"")+"。"
|
||||
+"风险类型:"+StringUtil.nullToString(detailList.get(0).get("fraud_type_display_name"),"")+"。"
|
||||
+"匹配字段:"+StringUtil.nullToString(detailList.get(0).get("hit_type_display_name"),"")+"。"
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("第三担保人身份证命中犯罪通缉名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name")+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("第三担保人手机号命中欠款公司法人代表名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("第三担保人身份证命中信贷逾期名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> overduedetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("overdue_details")),HashMap.class);
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for(int j=0;j<overduedetailList.size();j++){
|
||||
sb.append("(逾期金额:"+StringUtil.nullToString(overduedetailList.get(j).get("overdue_amount_range"),"")+","
|
||||
+"逾期笔数:"+StringUtil.nullToString(overduedetailList.get(j).get("overdue_count"),"")+","
|
||||
+"逾期天数:"+StringUtil.nullToString(overduedetailList.get(j).get("overdue_day_range"),"")+","
|
||||
+"逾期入库时间"+StringUtil.nullToString(overduedetailList.get(j).get("overdue_time"),"")+"),"
|
||||
);
|
||||
}
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"逾期次数:"+detailList.get(0).get("discredit_times").toString()+"。"
|
||||
+"详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",guarantorResultList.get(2).getAttribute("certid").getString());
|
||||
}else if("共同借款人身份证命中法院执行名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for(int j=0;j<courtdetailList.size();j++){
|
||||
sb.append(
|
||||
"(被执行人姓名:"+StringUtil.nullToString(courtdetailList.get(j).get("executed_name"),"")+","
|
||||
+"风险类型:"+StringUtil.nullToString(courtdetailList.get(j).get("fraud_type_display_name"),"")+","
|
||||
+"命中的属性值:"+StringUtil.nullToString(courtdetailList.get(j).get("value"),"")+","
|
||||
+"执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("execute_court"),"")+","
|
||||
+"立案时间:"+StringUtil.nullToString(courtdetailList.get(j).get("case_date"),"")+","
|
||||
+"案号:"+StringUtil.nullToString(courtdetailList.get(j).get("case_code"),"")+","
|
||||
+"做出依据执行法院:"+StringUtil.nullToString(courtdetailList.get(j).get("evidence_court"),"")+"),"
|
||||
);
|
||||
}
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。"
|
||||
+"法院详情:["+sb.toString().substring(0, sb.length()-1)+"。]";
|
||||
detailObject.setAttributeValue("retainfield1",coborrowerResult.getAttribute("certid").getString());
|
||||
}else if("共同借款人身份证_姓名命中信贷逾期模糊名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> fuzzyList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("fuzzy_list_details")),HashMap.class);
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+fuzzyList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"姓名:"+fuzzyList.get(0).get("fuzzy_name").toString()+"。"
|
||||
+"模糊身份证:"+fuzzyList.get(0).get("fuzzy_id_number").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",coborrowerResult.getAttribute("certid").getString());
|
||||
}else if("共同借款人身份证命中高风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",coborrowerResult.getAttribute("certid").getString());
|
||||
}else if("共同借款人手机号命中诈骗骚扰证据库".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",coborrowerResult.getAttribute("certid").getString());
|
||||
}else if("共同借款人手机号命中高风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@SuppressWarnings("rawtypes")
|
||||
List<HashMap> detailList = JSON.parseArray(JSON.toJSONString(riskItemList.get(i).get("risk_detail")),HashMap.class);
|
||||
msg ="规则描述:"+detailList.get(0).get("description").toString()+"。"
|
||||
+"风险类型:"+detailList.get(0).get("fraud_type_display_name").toString()+"。"
|
||||
+"匹配字段:"+detailList.get(0).get("hit_type_display_name").toString()+"。";
|
||||
detailObject.setAttributeValue("retainfield1",coborrowerResult.getAttribute("certid").getString());
|
||||
}else{
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user