diff --git a/WebContent/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdata.jsp b/WebContent/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdata.jsp index 52de9e4fa..f1e06f025 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdata.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdata.jsp @@ -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; diff --git a/config/bigdata.properties b/config/bigdata.properties index 1b6fab988..78377d72d 100644 --- a/config/bigdata.properties +++ b/config/bigdata.properties @@ -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 diff --git a/src_tenwa/com/tenwa/httpclient/pboc/PbocXmlUtils.java b/src_tenwa/com/tenwa/httpclient/pboc/PbocXmlUtils.java index bb5f64a79..dd2c37a6d 100644 --- a/src_tenwa/com/tenwa/httpclient/pboc/PbocXmlUtils.java +++ b/src_tenwa/com/tenwa/httpclient/pboc/PbocXmlUtils.java @@ -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);