Merge branch 'develop' of git@git2.tenwa.com.cn:ApzlDev/apzl_leasing.git into yexuan

This commit is contained in:
yexuan 2018-06-25 15:08:22 +08:00
commit 345512d093
2 changed files with 243 additions and 241 deletions

View File

@ -16,7 +16,7 @@
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
{"true","","Button","信贷校验","信贷校验","creditVerification()","","","","btn_icon_detail",""}

View File

@ -36,268 +36,270 @@ public class CreditBodyGuardAction {
BizObjectManager bom2 = JBOFactory.getBizObjectManager(LB_CAR_CREDIT_CALLRESULT.CLASS_NAME, tx);
BizObjectManager bom3 = JBOFactory.getBizObjectManager(LB_CAR_CREDIT_RISKITEM.CLASS_NAME, tx);
BizObject biz1 = bom1.createQuery("ID=:id").setParameter("id", id).getSingleResult(true);
String entryid = biz1.getAttribute("entryid").getString();
BizObject entryObject = bom2.createQuery("select final_decision from O where entryid=:ENTRYID").setParameter("ENTRYID",entryid).getSingleResult(false);
if(entryObject == null){
BizObject resultObject = bom2.newObject();
BodyGuardApiInvoker bodyGuardApiInvoker = new BodyGuardApiInvoker();
Map<String,Object> params = new HashMap<>();
//工作流编号
params.put("biz_code", "AntiFraud");
//借款人姓名
params.put("account_name", biz1.getAttribute("account_name").toString());
//借款人身份证
params.put("id_number", biz1.getAttribute("id_number").toString());
//借款人手机号
params.put("account_mobile", biz1.getAttribute("account_mobile").toString());
//借款人银行卡号
params.put("card_number", biz1.getAttribute("card_number"));
//借款人QQ
params.put("qq_number", biz1.getAttribute("qq_number").toString());
//借款人邮箱
params.put("account_email", biz1.getAttribute("account_email").toString());
//借款公司名称
params.put("lend_company", biz1.getAttribute("lend_company").toString());
//借款人单位地址
params.put("account_address_work", biz1.getAttribute("account_address_work").toString());
//借款用途
params.put("loan_purpose", biz1.getAttribute("loan_purpose").toString());
//共同借款人姓名
params.put("coborrower_name", biz1.getAttribute("coborrower_name").toString());
//共同借款人身份证
params.put("coborrower_id_number", biz1.getAttribute("coborrower_id_number").toString());
//共同借款人手机
params.put("coborrower_mobile", biz1.getAttribute("coborrower_mobile").toString());
//共同借款人社会关系
params.put("coborrower_relation", biz1.getAttribute("coborrower_relation").toString());
//第三联系人姓名
params.put("contact3_name", biz1.getAttribute("contact3_name").toString());
//第三联系人手机号
params.put("contact3_mobile", biz1.getAttribute("contact3_mobile").toString());
//第三联系人身份证
params.put("contact3_id_number", biz1.getAttribute("contact3_id_number").toString());
//第三联系人社会关系
params.put("contact3_relation", biz1.getAttribute("contact3_relation").toString());
//第二联系人姓名
params.put("contact2_name", biz1.getAttribute("contact2_name").toString());
//第二联系人手机号
params.put("contact2_mobile", biz1.getAttribute("contact2_mobile").toString());
//第二联系人身份证
params.put("contact2_id_number", biz1.getAttribute("contact2_id_number").toString());
//第二联系人社会关系
params.put("contact2_relation", biz1.getAttribute("contact2_relation").toString());
//第一联系人姓名
params.put("contact1_name", biz1.getAttribute("contact1_name").toString());
//第一联系人手机号
params.put("contact1_mobile", biz1.getAttribute("contact1_mobile").toString());
//第一联系人身份证
params.put("contact1_id_number", biz1.getAttribute("contact1_id_number").toString());
//第一联系人社会关系
params.put("contact1_relation", biz1.getAttribute("contact1_relation").toString());
//调用接口方法
BodyGuardApiResponse ResponseResult = bodyGuardApiInvoker.invoke(params);
if(!ResponseResult.getSuccess()){
return ResponseResult.getReason_desc().toString();
}
//解析返回成功的JSON数据
JSONObject object = JSONObject.parseObject(ResponseResult.getResult_desc());
//JSON结果对象
JSONObject resultobject = (JSONObject) object.get("ANTIFRAUD");
resultObject.setAttributeValue("entryid",ResponseResult.getId());
resultObject.setAttributeValue("final_score", resultobject.get("final_score"));
resultObject.setAttributeValue("final_decision", resultobject.get("final_decision"));
bom2.saveObject(resultObject);
//保存风险详情到风险项目表
@SuppressWarnings("rawtypes")
List<HashMap> riskItemList = JSON.parseArray(JSON.toJSONString(resultobject.get("risk_items")),HashMap.class);
if(!riskItemList.isEmpty()){
for(int i=0;i<riskItemList.size();i++){
String msg = "";
BizObject detailObject = bom3.newObject();
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("decision",riskItemList.get(i).get("decision"));
//风险名称
detailObject.setAttributeValue("risk_name",riskItemList.get(i).get("risk_name"));
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("high_risk_areas").toString().replace("[", "").replace("]","");
}else if("身份证命中法院失信名单".equals(riskItemList.get(i).get("risk_name"))){
if(biz1 != null){
String entryid = biz1.getAttribute("entryid").getString();
BizObject entryObject = bom2.createQuery("select final_decision from O where entryid=:ENTRYID").setParameter("ENTRYID",entryid).getSingleResult(false);
if(entryObject == null){
BizObject resultObject = bom2.newObject();
BodyGuardApiInvoker bodyGuardApiInvoker = new BodyGuardApiInvoker();
Map<String,Object> params = new HashMap<>();
//工作流编号
params.put("biz_code", "AntiFraud");
//借款人姓名
params.put("account_name", biz1.getAttribute("account_name").toString());
//借款人身份证
params.put("id_number", biz1.getAttribute("id_number").toString());
//借款人手机号
params.put("account_mobile", biz1.getAttribute("account_mobile").toString());
//借款人银行卡号
params.put("card_number", biz1.getAttribute("card_number"));
//借款人QQ
params.put("qq_number", biz1.getAttribute("qq_number").toString());
//借款人邮箱
params.put("account_email", biz1.getAttribute("account_email").toString());
//借款公司名称
params.put("lend_company", biz1.getAttribute("lend_company").toString());
//借款人单位地址
params.put("account_address_work", biz1.getAttribute("account_address_work").toString());
//借款用途
params.put("loan_purpose", biz1.getAttribute("loan_purpose").toString());
//共同借款人姓名
params.put("coborrower_name", biz1.getAttribute("coborrower_name").toString());
//共同借款人身份证
params.put("coborrower_id_number", biz1.getAttribute("coborrower_id_number").toString());
//共同借款人手机
params.put("coborrower_mobile", biz1.getAttribute("coborrower_mobile").toString());
//共同借款人社会关系
params.put("coborrower_relation", biz1.getAttribute("coborrower_relation").toString());
//第三联系人姓名
params.put("contact3_name", biz1.getAttribute("contact3_name").toString());
//第三联系人手机号
params.put("contact3_mobile", biz1.getAttribute("contact3_mobile").toString());
//第三联系人身份证
params.put("contact3_id_number", biz1.getAttribute("contact3_id_number").toString());
//第三联系人社会关系
params.put("contact3_relation", biz1.getAttribute("contact3_relation").toString());
//第二联系人姓名
params.put("contact2_name", biz1.getAttribute("contact2_name").toString());
//第二联系人手机号
params.put("contact2_mobile", biz1.getAttribute("contact2_mobile").toString());
//第二联系人身份证
params.put("contact2_id_number", biz1.getAttribute("contact2_id_number").toString());
//第二联系人社会关系
params.put("contact2_relation", biz1.getAttribute("contact2_relation").toString());
//第一联系人姓名
params.put("contact1_name", biz1.getAttribute("contact1_name").toString());
//第一联系人手机号
params.put("contact1_mobile", biz1.getAttribute("contact1_mobile").toString());
//第一联系人身份证
params.put("contact1_id_number", biz1.getAttribute("contact1_id_number").toString());
//第一联系人社会关系
params.put("contact1_relation", biz1.getAttribute("contact1_relation").toString());
//调用接口方法
BodyGuardApiResponse ResponseResult = bodyGuardApiInvoker.invoke(params);
if(!ResponseResult.getSuccess()){
return ResponseResult.getReason_desc().toString();
}
//解析返回成功的JSON数据
JSONObject object = JSONObject.parseObject(ResponseResult.getResult_desc());
//JSON结果对象
JSONObject resultobject = (JSONObject) object.get("ANTIFRAUD");
resultObject.setAttributeValue("entryid",ResponseResult.getId());
resultObject.setAttributeValue("final_score", resultobject.get("final_score"));
resultObject.setAttributeValue("final_decision", resultobject.get("final_decision"));
bom2.saveObject(resultObject);
//保存风险详情到风险项目表
@SuppressWarnings("rawtypes")
List<HashMap> riskItemList = JSON.parseArray(JSON.toJSONString(resultobject.get("risk_items")),HashMap.class);
if(!riskItemList.isEmpty()){
for(int i=0;i<riskItemList.size();i++){
String msg = "";
BizObject detailObject = bom3.newObject();
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("decision",riskItemList.get(i).get("decision"));
//风险名称
detailObject.setAttributeValue("risk_name",riskItemList.get(i).get("risk_name"));
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("high_risk_areas").toString().replace("[", "").replace("]","");
}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);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("execute_court") == null)){
msg = "风险类型: "+courtdetailList.get(j).get("fraud_type_display_name")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",被执行人履行情况:"+courtdetailList.get(j).get("carry_out");
}
}
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(3)
+",犯罪类型为:"+detailList.get(0).get("fraud_type_display_name").toString().split("")[0];
}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);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("execute_court") == null)){
msg = "风险类型: "+courtdetailList.get(j).get("fraud_type_display_name")
+",执行法院:"+courtdetailList.get(j).get("evidence_court")
+",立案时间:"+courtdetailList.get(j).get("case_date")
+",被执行人:"+courtdetailList.get(j).get("executed_name");
}
}
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(3);
}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("hit_type_display_name").toString()+"命中"+detailList.get(0).get("fraud_type_display_name").toString()
+"等高风险行为名单";
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(3)
+ ",违约类型:"+detailList.get(0).get("fraud_type_display_name").toString().split("")[0];
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(3)
+ ",身份证本人为:"+detailList.get(0).get("fraud_type_display_name").toString().split("")[0];
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(2)
+ ",违规类型:"+detailList.get(0).get("fraud_type_display_name").toString();
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("execute_court") == null)){
msg = "风险类型: "+courtdetailList.get(j).get("fraud_type_display_name")
msg = "风险类型:"+riskItemList.get(i).get("risk_name")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",被执行人履行情况:"+courtdetailList.get(j).get("carry_out");
+",执行日期:"+courtdetailList.get(j).get("case_date");
}
}
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(3)
+",犯罪类型为:"+detailList.get(0).get("fraud_type_display_name").toString().split("")[0];
}else if("身份证命中法院执行名单".equals(riskItemList.get(i).get("risk_name"))){
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("carry_out") == null)){
msg = "案件编号:"+courtdetailList.get(j).get("case_code")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",被执行人履行情况:"+courtdetailList.get(j).get("carry_out")
+",执行日期:"+courtdetailList.get(j).get("case_date");
}
}
}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();
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("carry_out") == null)){
msg = "风险类型:"+detailList.get(0).get("description")
+",案件编号:"+courtdetailList.get(j).get("case_code")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",被执行人履行情况:"+courtdetailList.get(j).get("carry_out")
+",执行日期:"+courtdetailList.get(j).get("case_date");
}
}
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@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 = "风险类型: "+courtdetailList.get(j).get("fraud_type_display_name")
+",执行法院:"+courtdetailList.get(j).get("evidence_court")
+",立案时间:"+courtdetailList.get(j).get("case_date")
+",被执行人:"+courtdetailList.get(j).get("executed_name");
sb.append(",风险类型:"+detailList.get(0).get("description")
+",案件编号:"+courtdetailList.get(j).get("case_code")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",执行日期:"+courtdetailList.get(j).get("case_date"));
}
}
}else if("身份证对应人存在助学贷款欠费历史".equals(riskItemList.get(i).get("risk_name"))){
msg = sb.toString().substring(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);
msg = detailList.get(0).get("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(3);
}else if("身份证命中高风险关注名单".equals(riskItemList.get(i).get("risk_name"))){
msg = "违规类型:"+detailList.get(0).get("description").toString()+"犯罪类型:"+detailList.get(0).get("fraud_type_display_name").toString();
}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("hit_type_display_name").toString()+"命中"+detailList.get(0).get("fraud_type_display_name").toString()
+"等高风险行为名单";
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(3)
+ ",违约类型:"+detailList.get(0).get("fraud_type_display_name").toString().split("")[0];
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(3)
+ ",身份证本人为:"+detailList.get(0).get("fraud_type_display_name").toString().split("")[0];
}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("hit_type_display_name").toString()+detailList.get(0).get("description").toString().substring(2)
+ ",违规类型:"+detailList.get(0).get("fraud_type_display_name").toString();
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("execute_court") == null)){
msg = "风险类型:"+riskItemList.get(i).get("risk_name")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",执行日期:"+courtdetailList.get(j).get("case_date");
}
}
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("carry_out") == null)){
msg = "案件编号:"+courtdetailList.get(j).get("case_code")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",被执行人履行情况:"+courtdetailList.get(j).get("carry_out")
+",执行日期:"+courtdetailList.get(j).get("case_date");
}
}
}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();
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("carry_out") == null)){
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("execute_court") == null)){
msg = "风险类型:"+detailList.get(0).get("description")
+",案件编号:"+courtdetailList.get(j).get("case_code")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",执行日期:"+courtdetailList.get(j).get("case_date");
}
}
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> greylistdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("grey_list_details")),HashMap.class);
for(int j=0;j<greylistdetailList.size();j++){
if(!(greylistdetailList.get(j).get("fraud_type") == null)){
msg = "风险类型:"+detailList.get(0).get("description")
+",案件编号:"+courtdetailList.get(j).get("case_code")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",被执行人履行情况:"+courtdetailList.get(j).get("carry_out")
+",执行日期:"+courtdetailList.get(j).get("case_date");
+",风险等级:"+greylistdetailList.get(j).get("risk_level")
+",信用程度:"+greylistdetailList.get(j).get("fraud_type_display_name")
+",手机号码:"+greylistdetailList.get(j).get("value");
}
}
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@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(",风险类型:"+detailList.get(0).get("description")
+",案件编号:"+courtdetailList.get(j).get("case_code")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",执行日期:"+courtdetailList.get(j).get("case_date"));
}
}
msg = sb.toString().substring(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);
msg = "违规类型:"+detailList.get(0).get("description").toString()+"犯罪类型:"+detailList.get(0).get("fraud_type_display_name").toString();
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> courtdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("court_details")),HashMap.class);
for(int j=0;j<courtdetailList.size();j++){
if(!(courtdetailList.get(j).get("execute_court") == null)){
msg = "风险类型:"+detailList.get(0).get("description")
+",案件编号:"+courtdetailList.get(j).get("case_code")
+",做出依据执行法院:"+courtdetailList.get(j).get("evidence_court")
+",执行日期:"+courtdetailList.get(j).get("case_date");
}
}
}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);
detailList.get(0).get("hit_type_display_name");
detailList.get(0).get("fraud_type_display_name");
detailList.get(0).get("description");
@SuppressWarnings("rawtypes")
List<HashMap> greylistdetailList = JSON.parseArray(JSON.toJSONString(detailList.get(0).get("grey_list_details")),HashMap.class);
for(int j=0;j<greylistdetailList.size();j++){
if(!(greylistdetailList.get(j).get("fraud_type") == null)){
msg = "风险类型:"+detailList.get(0).get("description")
+",风险等级:"+greylistdetailList.get(j).get("risk_level")
+",信用程度:"+greylistdetailList.get(j).get("fraud_type_display_name")
+",手机号码:"+greylistdetailList.get(j).get("value");
}
}
}else{
continue;
}
detailObject.setAttributeValue("risk_detail",msg);
bom3.saveObject(detailObject);
}
}
biz1.setAttributeValue("entryid",ResponseResult.getId());
bom1.saveObject(biz1);
return "SUCCESS@"+ResponseResult.getId();
}
}
}else{
continue;
}
detailObject.setAttributeValue("risk_detail",msg);
bom3.saveObject(detailObject);
}
}
biz1.setAttributeValue("entryid",ResponseResult.getId());
bom1.saveObject(biz1);
return "SUCCESS@"+ResponseResult.getId();
}
}
} catch (Exception e) {
tx.rollback();
e.printStackTrace();