1.鹏元接口个人信息按照贷前校验形式改。

This commit is contained in:
zhangbb 2019-06-18 13:51:46 +08:00
parent 5098fdc6c2
commit 57828ae2b0
4 changed files with 83 additions and 6 deletions

View File

@ -11,6 +11,7 @@
String flowunid = CurPage.getParameter("ObjectNo");
String projectNo = CurPage.getParameter("ProjectNo");
String ReadyApprove = CurPage.getParameter("ReadyApprove");
String fullcardNo = CurPage.getParameter("fullcardNo");
String applyId = "";
String getType = CurPage.getParameter("GetType");
String type = "";
@ -45,7 +46,7 @@
params.put("queryType","25136");
params.put("name",sReturn[1]);//被查询人姓名
params.put("documentNo",sReturn[2]);//被查询人证件号码
params.put("cardNos",sReturn[4]);//银行卡号
params.put("cardNos",fullcardNo);//银行卡号
params.put("queryReasonID","101");
params.put("subreportIDs","14501,14518");
params.put("refID","");
@ -73,7 +74,8 @@
html = html.replaceAll("width=\"103\"", "");
}
if(html.indexOf("<td>个人信息报告</td>") != -1) {
html = html.replaceAll("<td>个人信息报告</td>", "<td><a style=\"position:absolute;left:0;top:8%\" title=\"拉取鹏元数据\" onclick=\"AsButton.run(this, function(){getData();}, event);return false;\" class=\"inline_button \" hidefocus=\"\" href=\"javascript:void(0);\"><span style=\"display:none;\"></span><span class=\"left\">&nbsp;</span><span class=\"center\"><span class=\"btn_icon btn_icon_edit\">&nbsp;</span><span class=\"btn_text\">拉取鹏元数据</span></span><span class=\"right\">&nbsp;</span></a>个人信用报告</td>");
// html = html.replaceAll("<td>个人信息报告</td>", "<td><a style=\"position:absolute;left:0;top:8%\" title=\"拉取鹏元数据\" onclick=\"AsButton.run(this, function(){getData();}, event);return false;\" class=\"inline_button \" hidefocus=\"\" href=\"javascript:void(0);\"><span style=\"display:none;\"></span><span class=\"left\">&nbsp;</span><span class=\"center\"><span class=\"btn_icon btn_icon_edit\">&nbsp;</span><span class=\"btn_text\">拉取鹏元数据</span></span><span class=\"right\">&nbsp;</span></a>个人信用报告</td>");
html = html.replaceAll("<td>个人信息报告</td>", "<td><a style=\"position:absolute;left:0;top:8%\" title=\"拉取鹏元数据\" onClick=\"returnList();\" class=\"inline_button \" hidefocus=\"\" href=\"#\"><span style=\"display:none;\"></span><span class=\"left\">&nbsp;</span><span class=\"center\"><span class=\"btn_icon btn_icon_edit\">&nbsp;</span><span class=\"btn_text\">返回</span></span><span class=\"right\">&nbsp;</span></a>个人信息报告</td>");
}
if(html.indexOf("<body>") != -1) {
html = html.replaceAll("<body>", "<body style=\"overflow:scroll;height:95%\">");
@ -129,5 +131,8 @@
location.href = location.href.indexOf("&GetType=GET") == -1 ? location.href + "&GetType=GET&Count=<%=count%>" : location.href.substring(0, location.href.indexOf("&GetType=GET")) + "&GetType=GET&Count=<%=count%>";
}
}
function returnList(){
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/pengyuanEbankList.jsp", "FlowUnid=<%=flowunid%>","_self","");
}
</script>
<%@include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,45 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2019-06-14
Content:
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
String ProjectId = CurPage.getParameter("ProjectId");//流程编号
/* String flowunid = CurPage.getParameter("ObjectNo");
String projectNo = CurPage.getParameter("ProjectNo");
String ReadyApprove = CurPage.getParameter("ReadyApprove");
String getType = CurPage.getParameter("GetType"); */
ASObjectModel doTemp = new ASObjectModel("VI_LB_IDENTITY_CHECK_EBANK");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "0"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(sFlowUnid);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","拉取鹏元数据","拉取鹏元数据","newRecord()","","","","btn_icon_add",""},
// {"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
// {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/pengyuanEbank.jsp";
var fullName = getItemValue(0,getRow(0),'fullName');
var fullcertId = getItemValue(0,getRow(0),'certId');
var fullrelation = getItemValue(0,getRow(0),'relation');
var fullphone = getItemValue(0,getRow(0),'phone');
var fullcardNo = getItemValue(0,getRow(0),'fullcardNo');
if(fullcardNo==""||fullcardNo==null){
alert("请填写银行卡号");
return;
}
AsControl.OpenView(sUrl,'ProjectId='+'<%=ProjectId%>'+'&fullName='+fullName+'&fullcertId='+fullcertId+'&fullrelation='+fullrelation+'&fullphone='+fullphone+'&fullcardNo='+fullcardNo,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -3155,5 +3155,29 @@
</managerProperties>
</manager>
</class>
<class name="BIGDATA_EBANK_AF" label="鹏元个人信息" keyAttributes="">
<attributes>
<attribute name="id" label="ID" type="STRING"/>
<attribute name="keyword1" label="keyword1" type="STRING"/>
<attribute name="keyword2" label="keyword2" type="STRING"/>
<attribute name="keyword3" label="keyword3" type="STRING"/>
<attribute name="keyword4" label="keyword4" type="STRING"/>
<attribute name="keyword5" label="keyword5" type="STRING"/>
<attribute name="xml_data" label="xml数据" type="STRING"/>
<attribute name="html_data" label="html数据" type="STRING"/>
<attribute name="fullname" label="姓名" type="STRING"/>
<attribute name="fullcertId" label="身份证号" type="STRING"/>
<attribute name="fullphone" label="手机号" type="STRING"/>
<attribute name="fullcardNo" label="银行卡号" type="STRING"/>
<attribute name="inputuserid" label="输入人" type="STRING"/>
<attribute name="inputorgid" label="输入部门" type="STRING"/>
<attribute name="inputtime" label="输入时间" type="STRING"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="BIGDATA_EBANK_AF" />
</managerProperties>
</manager>
</class>
</package>
</jbo>

View File

@ -114,6 +114,8 @@ public class BigDataController {
Configure configure = Configure.getInstance();
String fileSavePath = configure.getParameter("FileSavePath") + "/" + "pengyuan" + "/";
String FlowNo = CurPage.getParameter("FlowNo");
String fullcardNo = CurPage.getParameter("fullcardNo");
if(fullcardNo==null||"".equals(fullcardNo)){fullcardNo="default";}
String queryCondition = HttpClientUtil.getQueryCondition(params);
Connection conn = Sqlca.getConnection(Sqlca);
try{
@ -124,8 +126,8 @@ public class BigDataController {
//在发起大数据请求前记录所有报文信息
PreparedStatement ps = null;
try {
ps = conn.prepareStatement("insert into bigdata_" + table + "_log (id, apply_id, type, html_url, html_param, inputuserid, inputorgid, inputtime,fullName,fullcertId,fullphone)"
+ " values(REPLACE(UUID(),'-',''), ?, 'apply', ?, ?, ?, ?, ? ,?, ?, ? )");
ps = conn.prepareStatement("insert into bigdata_" + table + "_log (id, apply_id, type, html_url, html_param, inputuserid, inputorgid, inputtime,fullName,fullcertId,fullphone,fullcardNo)"
+ " values(REPLACE(UUID(),'-',''), ?, 'apply', ?, ?, ?, ?, ? ,?, ?, ?,? )");
ps.setString(1, applyId);
ps.setString(2, BigDataPropertiesUtil.get("pengyuanUrl"));
ps.setString(3, queryCondition + "," + BigDataPropertiesUtil.get("user") + "," + BigDataPropertiesUtil.get("password") + "," + type);
@ -135,6 +137,7 @@ public class BigDataController {
ps.setString(7, CurPage.getParameter("fullName"));
ps.setString(8, CurPage.getParameter("fullcertId"));
ps.setString(9, CurPage.getParameter("fullphone"));
ps.setString(10, fullcardNo);
ps.execute();
} catch(Exception e) {
e.printStackTrace();
@ -204,9 +207,9 @@ public class BigDataController {
keywordValue.append(",'"+FlowNo+"'");
}
SqlObject sql = new SqlObject(("insert into bigdata_" + table + " (id," + keyword.toString() + ",xml_data,html_data,"
+ "inputuserid,inputorgid,inputtime,fullName,fullcertId,fullphone) values('" + applyId + "'," + keywordValue.toString() + ",'"
+ "inputuserid,inputorgid,inputtime,fullName,fullcertId,fullphone,fullcardNo) values('" + applyId + "'," + keywordValue.toString() + ",'"
+ xmlResult + "','" + htmlFile.split("@")[1] + "','" + CurPage.getUserId() + "','" + CurPage.getUser().getOrgID() + "','" + StringFunction.getTodayNow() +"','"
+CurPage.getParameter("fullName")+"','"+CurPage.getParameter("fullcertId")+"','"+CurPage.getParameter("fullphone")+"')").replaceAll(":", "¡÷"));
+CurPage.getParameter("fullName")+"','"+CurPage.getParameter("fullcertId")+"','"+CurPage.getParameter("fullphone")+"','"+fullcardNo+"')").replaceAll(":", "¡÷"));
sql.setDebugSql(sql.getDebugSql().replaceAll("", ":"));
sql.setOriginalSql(sql.getOriginalSql().replaceAll("", ":"));
sql.setRunSql(sql.getRunSql().replaceAll("", ":"));