风控中台对接-pboc修改担保人查询原因230912
This commit is contained in:
parent
cd55235352
commit
0b39b453b9
@ -25,6 +25,7 @@
|
||||
// TODO: 2023/1/31 上线需修改
|
||||
params.put("fullCertId",CurPage.getParameter("fullCertId"));
|
||||
params.put("fullName",CurPage.getParameter("fullName"));
|
||||
params.put("fullRelation",CurPage.getParameter("fullRelation"));
|
||||
|
||||
FileInputStream fr = null;
|
||||
BufferedReader br = null;
|
||||
|
||||
@ -26,10 +26,10 @@ t_methodType = queryReport
|
||||
|
||||
|
||||
#pboc canshu
|
||||
pboc_url = http://9.35.68.227:9090/pbcrs/api/msgDispatchController/postProcess
|
||||
pboc_url = http://9.35.68.228:8080/pbcrs/api/msgDispatchController/postProcess
|
||||
pboc_txCode = ZXCXA01
|
||||
pboc_reqSysCode = CX
|
||||
pboc_loginUserCode = zxcx
|
||||
pboc_loginUserCode = test
|
||||
pboc_loginPwd = 123456
|
||||
pboc_finDept = a5adabc8ae00417bbe1b4f54423f4d03
|
||||
pboc_authArchUrl = www.baidu.com
|
||||
|
||||
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.amarsoft.are.ARE;
|
||||
import com.amarsoft.dict.als.manage.CodeManager;
|
||||
import com.tenwa.flow.util.CalculateUtil;
|
||||
import com.tenwa.httpclient.resources.BigDataPropertiesUtil;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
@ -23,31 +24,39 @@ public class PbocXmlUtils {
|
||||
JSONObject param = new JSONObject();
|
||||
JSONObject msgHead = new JSONObject();
|
||||
JSONObject msgBody = new JSONObject();
|
||||
msgHead.put("txCode", BigDataPropertiesUtil.get("pboc_txCode"));
|
||||
msgHead.put("reqSysCode", BigDataPropertiesUtil.get("pboc_reqSysCode"));
|
||||
msgHead.put("loginUserCode", BigDataPropertiesUtil.get("pboc_loginUserCode"));
|
||||
msgHead.put("loginPwd", BigDataPropertiesUtil.get("pboc_loginPwd"));
|
||||
msgHead.put("finDept", BigDataPropertiesUtil.get("pboc_finDept"));
|
||||
msgHead.put("txCode", CodeManager.getItemName("pboc_query_strategy", "txCode"));
|
||||
msgHead.put("reqSysCode", CodeManager.getItemName("pboc_query_strategy", "reqSysCode"));
|
||||
msgHead.put("loginUserCode", CodeManager.getItemName("pboc_query_strategy", "loginUserCode"));
|
||||
msgHead.put("loginPwd", CodeManager.getItemName("pboc_query_strategy", "loginPwd"));
|
||||
msgHead.put("finDept", CodeManager.getItemName("pboc_query_strategy", "finDept"));
|
||||
param.put("msgHead", msgHead);
|
||||
|
||||
//查询申请类型 01-人工申请(通过前置系统发起的申请)
|
||||
msgBody.put("appType", "01");
|
||||
msgBody.put("rptUser", BigDataPropertiesUtil.get("pboc_loginUserCode"));//报告使用人 登录征信查询前置系统的用户账号
|
||||
msgBody.put("rptUserdept", "777");//填写部门机构代码
|
||||
msgBody.put("rptUser", CodeManager.getItemName("pboc_query_strategy", "finDept"));//报告使用人 登录征信查询前置系统的用户账号
|
||||
msgBody.put("rptUserdept", CodeManager.getItemName("pboc_query_strategy", "finDept"));//填写部门机构代码
|
||||
|
||||
// msgBody.put("reqId", applyId);
|
||||
msgBody.put("custName", params.get("fullName"));
|
||||
msgBody.put("custCertype", "10");//证件类型 10-身份证
|
||||
msgBody.put("custCertno", params.get("fullCertId"));
|
||||
//查询原因 24-融资审批
|
||||
msgBody.put("qryReason", "24");
|
||||
msgBody.put("qryType", "0");//查询类型
|
||||
msgBody.put("rptQryType", "1");//信用报告查询方式:1本地优先,2仅查询本地,3仅查询征信系统。
|
||||
String fullRelation = params.get("fullRelation");
|
||||
if("共同申请人".equals(fullRelation)){
|
||||
msgBody.put("qryReason", CodeManager.getItemName("pboc_query_strategy", "qryReason_jointApplicant"));
|
||||
}else if("担保人".equals(fullRelation)){
|
||||
msgBody.put("qryReason", CodeManager.getItemName("pboc_query_strategy", "qryReason_guarantor"));
|
||||
}else if("申请人".equals(fullRelation)){
|
||||
msgBody.put("qryReason", CodeManager.getItemName("pboc_query_strategy", "qryReason_lessee"));
|
||||
}
|
||||
|
||||
msgBody.put("qryType", CodeManager.getItemName("pboc_query_strategy", "qryType"));//查询类型
|
||||
msgBody.put("rptQryType", CodeManager.getItemName("pboc_query_strategy", "rptQryType"));//信用报告查询方式:1本地优先,2仅查询本地,3仅查询征信系统。
|
||||
//"01-银行版
|
||||
//02-自助查询版
|
||||
//03-政府版
|
||||
//04-社会版"
|
||||
msgBody.put("qryFormat", "01");//查询版本
|
||||
msgBody.put("qryFormat", CodeManager.getItemName("pboc_query_strategy", "qryFormat"));//查询版本
|
||||
/**
|
||||
* a-基本信息
|
||||
* b-信息概要
|
||||
@ -64,10 +73,10 @@ public class PbocXmlUtils {
|
||||
msgBody.put("authStartDt", startTime);
|
||||
msgBody.put("authEndDt", endTime);
|
||||
|
||||
msgBody.put("authArchUrl", BigDataPropertiesUtil.get("pboc_authArchUrl"));//授权档案来源URL
|
||||
msgBody.put("certSrcUrl", BigDataPropertiesUtil.get("pboc_certSrcUrl"));//证照来源URL
|
||||
// msgBody.put("certFileNameList", "证照文件名称");
|
||||
// msgBody.put("authArchFileNameList", "授权档案文件名称");
|
||||
msgBody.put("authArchUrl", CodeManager.getItemName("pboc_query_strategy", "authArchUrl"));//授权档案来源URL
|
||||
msgBody.put("certSrcUrl", CodeManager.getItemName("pboc_query_strategy", "certSrcUrl"));//证照来源URL
|
||||
msgBody.put("certFileNameList", CodeManager.getItemName("pboc_query_strategy", "certFileNameList"));
|
||||
msgBody.put("authArchFileNameList", CodeManager.getItemName("pboc_query_strategy", "authArchFileNameList"));
|
||||
param.put("msgBody", msgBody);
|
||||
ARE.getLog().info("xmlParamStr : " + param.toJSONString());
|
||||
String xmlParamStr = toXml(param);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user