1.鹏元:客户要求每查一条新的只保留新数据

This commit is contained in:
zhangbb 2019-06-19 17:48:55 +08:00
parent c682d37571
commit 4c233b843a
2 changed files with 6 additions and 2 deletions

View File

@ -73,9 +73,9 @@
if(html.indexOf("width=\"103\"") != -1) {
html = html.replaceAll("width=\"103\"", "");
}
if(html.indexOf("<td>卡多笔交易记录</td>") != -1) {
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=\"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>");
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%\">");

View File

@ -206,6 +206,10 @@ public class BigDataController {
keyword.append(",keyword3");
keywordValue.append(",'"+FlowNo+"'");
}
if("ebank_af".equals(table)){
SqlObject sql_d = new SqlObject("delete from bigdata_ebank_af where fullcertId="+CurPage.getParameter("fullcertId"));
Sqlca.executeSQL(sql_d);
}
SqlObject sql = new SqlObject(("insert into bigdata_" + table + " (id," + keyword.toString() + ",xml_data,html_data,"
+ "inputuserid,inputorgid,inputtime,fullName,fullcertId,fullphone,fullcardNo) values('" + applyId + "'," + keywordValue.toString() + ",'"
+ xmlResult + "','" + htmlFile.split("@")[1] + "','" + CurPage.getUserId() + "','" + CurPage.getUser().getOrgID() + "','" + StringFunction.getTodayNow() +"','"