贷前校验补充nullToString的校验
This commit is contained in:
parent
f362118589
commit
7fa705fbab
@ -13,15 +13,16 @@ import jbo.app.tenwa.customer.LB_CAR_CREDIT_RISKITEM_TEMP;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.amarsoft.app.util.StringUtil;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
/**
|
||||
* 贷前征信校验类
|
||||
* 贷前征信校验类
|
||||
* @author 张磊
|
||||
* 2018年7月4日 下午3:30:16
|
||||
* 2018年7月4日 下午5:39:26
|
||||
*/
|
||||
public class CreditBodyGuardAction {
|
||||
|
||||
@ -170,20 +171,21 @@ public class CreditBodyGuardAction {
|
||||
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)){
|
||||
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()+"。"
|
||||
+"法院详情(风险类型:"+courtdetailList.get(j).get("fraud_type_display_name").toString()+","
|
||||
+"命中的属性值:"+courtdetailList.get(j).get("value").toString()+","
|
||||
+"执行法院:"+courtdetailList.get(j).get("execute_court").toString()+","
|
||||
+"立案时间:"+courtdetailList.get(j).get("case_date").toString()+","
|
||||
+"做出依据执行法院: "+courtdetailList.get(j).get("evidence_court").toString()+","
|
||||
+"被执行人履行情况: "+courtdetailList.get(j).get("carry_out").toString()+","
|
||||
+"信贷逾期被执行人行为具体情形:"+courtdetailList.get(j).get("specific_circumstances").toString()+")";
|
||||
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)+"。]";
|
||||
}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);
|
||||
@ -197,21 +199,19 @@ public class CreditBodyGuardAction {
|
||||
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(
|
||||
"(被执行人姓名:"+courtdetailList.get(j).get("executed_name").toString()+","
|
||||
+"风险类型:"+courtdetailList.get(j).get("fraud_type_display_name").toString()+","
|
||||
+"命中的属性值:"+courtdetailList.get(j).get("value").toString()+","
|
||||
+"执行法院:"+courtdetailList.get(j).get("execute_court").toString()+","
|
||||
+"立案时间:"+courtdetailList.get(j).get("case_date").toString()+","
|
||||
+"案号:"+courtdetailList.get(j).get("case_code").toString()+")"
|
||||
);
|
||||
}
|
||||
"(被执行人姓名:"+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"),"")+"),"
|
||||
);
|
||||
}
|
||||
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()+"。]";
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
}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);
|
||||
@ -225,17 +225,15 @@ public class CreditBodyGuardAction {
|
||||
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++){
|
||||
if(overduedetailList.get(j).get("overdue_amount_range")!=null){
|
||||
sb.append("(逾期金额:"+overduedetailList.get(j).get("overdue_amount_range").toString()+","
|
||||
+"逾期笔数:"+overduedetailList.get(j).get("overdue_count").toString()+","
|
||||
+"逾期天数:"+overduedetailList.get(j).get("overdue_day_range").toString()+","
|
||||
+"overdue_time"+overduedetailList.get(j).get("overdue_time").toString()+")"
|
||||
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()+"。";
|
||||
+"详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
}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);
|
||||
@ -255,24 +253,22 @@ public class CreditBodyGuardAction {
|
||||
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(
|
||||
"(被执行人姓名:"+courtdetailList.get(j).get("executed_name").toString()+","
|
||||
+"性别:"+courtdetailList.get(j).get("gender").toString()+","
|
||||
+"年龄:"+courtdetailList.get(j).get("age").toString()+","
|
||||
+"风险类型:"+courtdetailList.get(j).get("fraud_type_display_name").toString()+","
|
||||
+"命中的属性值:"+courtdetailList.get(j).get("value").toString()+","
|
||||
+"执行法院:"+courtdetailList.get(j).get("execute_court").toString()+","
|
||||
+"省份:"+courtdetailList.get(j).get("province").toString()+","
|
||||
+ "执行依据文号:"+courtdetailList.get(j).get("execute_code").toString()+","
|
||||
+"立案时间:"+courtdetailList.get(j).get("case_date").toString()+","
|
||||
+"案号:"+courtdetailList.get(j).get("case_code").toString()+","
|
||||
+"做出依据执行法院:"+courtdetailList.get(j).get("evidence_court").toString()+","
|
||||
+"生效法律文书确定的义务:"+courtdetailList.get(j).get("term_duty").toString()+","
|
||||
+"被执行人履行情况:"+courtdetailList.get(j).get("carry_out").toString()+","
|
||||
+"信贷逾期被执行人行为具体情形:"+courtdetailList.get(j).get("specific_circumstances").toString()+"),"
|
||||
);
|
||||
}
|
||||
"(被执行人姓名:"+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("province"),"")+","
|
||||
+ "执行依据文号:"+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("term_duty"),"")+","
|
||||
+"被执行人履行情况:"+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()+"。"
|
||||
@ -375,17 +371,15 @@ public class CreditBodyGuardAction {
|
||||
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++){
|
||||
if(overduedetailList.get(j).get("overdue_amount_range")!=null){
|
||||
sb.append("(逾期金额:"+overduedetailList.get(j).get("overdue_amount_range").toString()+","
|
||||
+"逾期笔数:"+overduedetailList.get(j).get("overdue_count").toString()+","
|
||||
+"逾期天数:"+overduedetailList.get(j).get("overdue_day_range").toString()+","
|
||||
+"overdue_time"+overduedetailList.get(j).get("overdue_time").toString()+")"
|
||||
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()+"。]";
|
||||
+"详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
}else if("手机号疑似乱填".equals(riskItemList.get(i).get("risk_name"))){
|
||||
msg = "";
|
||||
}else if("手机号命中车辆租赁违约名单".equals(riskItemList.get(i).get("risk_name"))){
|
||||
@ -414,7 +408,7 @@ public class CreditBodyGuardAction {
|
||||
JSONArray frequencyArray = (JSONArray) frequencydetailList.get(0).get("data");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for(int j =0;j<frequencyArray.size();j++){
|
||||
sb.append(frequencyArray.get(j).toString()+",");
|
||||
sb.append(StringUtil.nullToString(frequencyArray.get(j),"")+",");
|
||||
}
|
||||
msg = "频度规则详情:"+frequencydetailList.get(0).get("detail").toString()+",详细:"
|
||||
+ "("+sb.toString().substring(0,sb.length()-1)+")";
|
||||
@ -426,7 +420,7 @@ public class CreditBodyGuardAction {
|
||||
JSONArray frequencyArray = (JSONArray) frequencydetailList.get(0).get("data");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for(int j =0;j<frequencyArray.size();j++){
|
||||
sb.append(frequencyArray.get(j).toString()+",");
|
||||
sb.append(StringUtil.nullToString(frequencyArray.get(j),"")+",");
|
||||
}
|
||||
msg = "频度规则详情:"+frequencydetailList.get(0).get("detail").toString()+",详细:"
|
||||
+ "("+sb.toString().substring(0,sb.length()-1)+")";
|
||||
@ -461,17 +455,18 @@ public class CreditBodyGuardAction {
|
||||
List<HashMap> platformdetaildimensionphoneList = JSON.parseArray(JSON.toJSONString(platformdetaildimensionList.get(1).get("detail")),HashMap.class);
|
||||
StringBuffer sb1 = new StringBuffer();
|
||||
for(int j=0;j<platformdetailList.size();j++){
|
||||
sb1.append(platformdetailList.get(j).get("industry_display_name").toString()+":"+platformdetailList.get(j).get("count").toString()+",");
|
||||
sb1.append(StringUtil.nullToString(platformdetailList.get(j).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetailList.get(j).get("count"),"")+",");
|
||||
}
|
||||
StringBuffer sb2 = new StringBuffer();
|
||||
for(int k=0;k<platformdetaildimensionphoneList.size();k++){
|
||||
sb2.append(platformdetaildimensionphoneList.get(k).get("industry_display_name").toString()+":"
|
||||
+platformdetaildimensionphoneList.get(k).get("count").toString()+",");
|
||||
sb2.append(StringUtil.nullToString(platformdetaildimensionphoneList.get(k).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetaildimensionphoneList.get(k).get("count"), "")+",");
|
||||
}
|
||||
StringBuffer sb3 = new StringBuffer();
|
||||
for(int h=0;h<platformdetaildimensioncertidList.size();h++){
|
||||
sb3.append(platformdetaildimensioncertidList.get(h).get("industry_display_name").toString()+":"
|
||||
+platformdetaildimensioncertidList.get(h).get("count").toString()+",");
|
||||
sb3.append(StringUtil.nullToString(platformdetaildimensioncertidList.get(h).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetaildimensioncertidList.get(h).get("count"),"")+",");
|
||||
}
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+","
|
||||
+"总个数:"+detailList.get(0).get("platform_count").toString()+","
|
||||
@ -494,17 +489,18 @@ public class CreditBodyGuardAction {
|
||||
List<HashMap> platformdetaildimensionphoneList = JSON.parseArray(JSON.toJSONString(platformdetaildimensionList.get(1).get("detail")),HashMap.class);
|
||||
StringBuffer sb1 = new StringBuffer();
|
||||
for(int j=0;j<platformdetailList.size();j++){
|
||||
sb1.append(platformdetailList.get(j).get("industry_display_name").toString()+":"+platformdetailList.get(j).get("count").toString()+",");
|
||||
sb1.append(StringUtil.nullToString(platformdetailList.get(j).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetailList.get(j).get("count"),"")+",");
|
||||
}
|
||||
StringBuffer sb2 = new StringBuffer();
|
||||
for(int h=0;h<platformdetaildimensionphoneList.size();h++){
|
||||
sb2.append(platformdetaildimensionphoneList.get(h).get("industry_display_name").toString()+":"
|
||||
+platformdetaildimensionphoneList.get(h).get("count").toString()+",");
|
||||
for(int k=0;k<platformdetaildimensionphoneList.size();k++){
|
||||
sb2.append(StringUtil.nullToString(platformdetaildimensionphoneList.get(k).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetaildimensionphoneList.get(k).get("count"), "")+",");
|
||||
}
|
||||
StringBuffer sb3 = new StringBuffer();
|
||||
for(int k=0;k<platformdetaildimensioncertidList.size();k++){
|
||||
sb3.append(platformdetaildimensioncertidList.get(k).get("industry_display_name").toString()+":"
|
||||
+platformdetaildimensioncertidList.get(k).get("count").toString()+",");
|
||||
for(int h=0;h<platformdetaildimensioncertidList.size();h++){
|
||||
sb3.append(StringUtil.nullToString(platformdetaildimensioncertidList.get(h).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetaildimensioncertidList.get(h).get("count"),"")+",");
|
||||
}
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+","
|
||||
+"总个数:"+detailList.get(0).get("platform_count").toString()+","
|
||||
@ -527,17 +523,18 @@ public class CreditBodyGuardAction {
|
||||
List<HashMap> platformdetaildimensionphoneList = JSON.parseArray(JSON.toJSONString(platformdetaildimensionList.get(1).get("detail")),HashMap.class);
|
||||
StringBuffer sb1 = new StringBuffer();
|
||||
for(int j=0;j<platformdetailList.size();j++){
|
||||
sb1.append(platformdetailList.get(j).get("industry_display_name").toString()+":"+platformdetailList.get(j).get("count").toString()+",");
|
||||
sb1.append(StringUtil.nullToString(platformdetailList.get(j).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetailList.get(j).get("count"),"")+",");
|
||||
}
|
||||
StringBuffer sb2 = new StringBuffer();
|
||||
for(int k=0;k<platformdetaildimensionphoneList.size();k++){
|
||||
sb2.append(platformdetaildimensionphoneList.get(k).get("industry_display_name").toString()+":"
|
||||
+platformdetaildimensionphoneList.get(k).get("count").toString()+",");
|
||||
sb2.append(StringUtil.nullToString(platformdetaildimensionphoneList.get(k).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetaildimensionphoneList.get(k).get("count"), "")+",");
|
||||
}
|
||||
StringBuffer sb3 = new StringBuffer();
|
||||
for(int h=0;h<platformdetaildimensioncertidList.size();h++){
|
||||
sb3.append(platformdetaildimensioncertidList.get(h).get("industry_display_name").toString()+":"
|
||||
+platformdetaildimensioncertidList.get(h).get("count").toString()+",");
|
||||
sb3.append(StringUtil.nullToString(platformdetaildimensioncertidList.get(h).get("industry_display_name"),"")+":"
|
||||
+StringUtil.nullToString(platformdetaildimensioncertidList.get(h).get("count"),"")+",");
|
||||
}
|
||||
msg = "规则描述:"+detailList.get(0).get("description").toString()+","
|
||||
+"总个数:"+detailList.get(0).get("platform_count").toString()+","
|
||||
@ -572,27 +569,25 @@ public class CreditBodyGuardAction {
|
||||
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("evidence_court")!=null){
|
||||
sb.append(
|
||||
"(被执行人姓名:"+courtdetailList.get(j).get("executed_name").toString()+","
|
||||
+"性别:"+courtdetailList.get(j).get("gender").toString()+","
|
||||
+"年龄:"+courtdetailList.get(j).get("age").toString()+","
|
||||
+"风险类型:"+courtdetailList.get(j).get("fraud_type_display_name").toString()+","
|
||||
+"命中的属性值:"+courtdetailList.get(j).get("value").toString()+","
|
||||
+"执行法院:"+courtdetailList.get(j).get("execute_court").toString()+","
|
||||
+ "执行依据文号:"+courtdetailList.get(j).get("execute_code").toString()+","
|
||||
+"立案时间:"+courtdetailList.get(j).get("case_date").toString()+","
|
||||
+"案号:"+courtdetailList.get(j).get("case_code").toString()+","
|
||||
+"做出依据执行法院:"+courtdetailList.get(j).get("evidence_court").toString()+","
|
||||
+"被执行人履行情况:"+courtdetailList.get(j).get("carry_out").toString()+","
|
||||
+"信贷逾期被执行人行为具体情形:"+courtdetailList.get(j).get("specific_circumstances").toString()+"),"
|
||||
);
|
||||
}
|
||||
"(被执行人姓名:"+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)+"。]";
|
||||
}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);
|
||||
@ -608,20 +603,20 @@ public class CreditBodyGuardAction {
|
||||
for(int j=0;j<courtdetailList.size();j++){
|
||||
if(courtdetailList.get(j).get("execute_court")!=null){
|
||||
sb.append(
|
||||
"(被执行人姓名:"+courtdetailList.get(j).get("executed_name").toString()+","
|
||||
+"风险类型:"+courtdetailList.get(j).get("fraud_type_display_name").toString()+","
|
||||
+"命中的属性值:"+courtdetailList.get(j).get("value").toString()+","
|
||||
+"执行法院:"+courtdetailList.get(j).get("execute_court").toString()+","
|
||||
+"立案时间:"+courtdetailList.get(j).get("case_date").toString()+","
|
||||
+"案号:"+courtdetailList.get(j).get("case_code").toString()+","
|
||||
+"做出依据执行法院:"+courtdetailList.get(j).get("evidence_court").toString()+")"
|
||||
"(被执行人姓名:"+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()+"。";
|
||||
+"法院详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
}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);
|
||||
@ -644,28 +639,26 @@ public class CreditBodyGuardAction {
|
||||
@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){
|
||||
for(int j=0;j<courtdetailList.size();j++){
|
||||
sb.append(
|
||||
"(被执行人姓名:"+courtdetailList.get(j).get("executed_name").toString()+","
|
||||
+"性别:"+courtdetailList.get(j).get("gender").toString()+","
|
||||
+"年龄:"+courtdetailList.get(j).get("age").toString()+","
|
||||
+"风险类型:"+courtdetailList.get(j).get("fraud_type_display_name").toString()+","
|
||||
+"命中的属性值:"+courtdetailList.get(j).get("value").toString()+","
|
||||
+"执行法院:"+courtdetailList.get(j).get("execute_court").toString()+","
|
||||
+ "执行依据文号:"+courtdetailList.get(j).get("execute_code").toString()+","
|
||||
+"立案时间:"+courtdetailList.get(j).get("case_date").toString()+","
|
||||
+"案号:"+courtdetailList.get(j).get("case_code").toString()+","
|
||||
+"做出依据执行法院:"+courtdetailList.get(j).get("evidence_court").toString()+","
|
||||
+"被执行人履行情况:"+courtdetailList.get(j).get("carry_out").toString()+","
|
||||
+"信贷逾期被执行人行为具体情形:"+courtdetailList.get(j).get("specific_circumstances").toString()+"),"
|
||||
);
|
||||
}
|
||||
"(被执行人姓名:"+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)+"。]";
|
||||
}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);
|
||||
@ -673,22 +666,20 @@ public class CreditBodyGuardAction {
|
||||
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(
|
||||
"(被执行人姓名:"+courtdetailList.get(j).get("executed_name").toString()+","
|
||||
+"风险类型:"+courtdetailList.get(j).get("fraud_type_display_name").toString()+","
|
||||
+"命中的属性值:"+courtdetailList.get(j).get("value").toString()+","
|
||||
+"执行法院:"+courtdetailList.get(j).get("execute_court").toString()+","
|
||||
+"立案时间:"+courtdetailList.get(j).get("case_date").toString()+","
|
||||
+"案号:"+courtdetailList.get(j).get("case_code").toString()+","
|
||||
+"做出依据执行法院:"+courtdetailList.get(j).get("evidence_court").toString()+"),"
|
||||
);
|
||||
}
|
||||
"(被执行人姓名:"+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)+"。";
|
||||
+"法院详情:["+sb.toString().substring(0, sb.length()-1)+"。]";
|
||||
}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);
|
||||
@ -718,22 +709,20 @@ public class CreditBodyGuardAction {
|
||||
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(
|
||||
"(被执行人姓名:"+courtdetailList.get(j).get("executed_name").toString()+","
|
||||
+"风险类型:"+courtdetailList.get(j).get("fraud_type_display_name").toString()+","
|
||||
+"命中的属性值:"+courtdetailList.get(j).get("value").toString()+","
|
||||
+"执行法院:"+courtdetailList.get(j).get("execute_court").toString()+","
|
||||
+"立案时间:"+courtdetailList.get(j).get("case_date").toString()+","
|
||||
+"案号:"+courtdetailList.get(j).get("case_code").toString()+","
|
||||
+"做出依据执行法院:"+courtdetailList.get(j).get("evidence_court").toString()+"),"
|
||||
);
|
||||
}
|
||||
"(被执行人姓名:"+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)+"。";
|
||||
+"法院详情:["+sb.toString().substring(0, sb.length()-1)+"。]";
|
||||
}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);
|
||||
@ -750,17 +739,15 @@ public class CreditBodyGuardAction {
|
||||
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++){
|
||||
if(overduedetailList.get(j).get("overdue_amount_range")!=null){
|
||||
sb.append("(逾期金额:"+overduedetailList.get(j).get("overdue_amount_range").toString()+","
|
||||
+"逾期笔数:"+overduedetailList.get(j).get("overdue_count").toString()+","
|
||||
+"逾期天数:"+overduedetailList.get(j).get("overdue_day_range").toString()+","
|
||||
+"逾期入库时间:"+overduedetailList.get(j).get("overdue_time").toString()+")"
|
||||
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()+"。";
|
||||
+"详情:["+sb.toString().substring(0,sb.length()-1)+"。]";
|
||||
}else{
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user