From a1e1f7301fc711f3b6f5a8111f796b3f77192fb4 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Fri, 16 Nov 2018 18:24:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=9A=E5=8A=A1=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E6=8E=A5=E5=8F=A3=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LBIdentityCheck/LBCarIdentityCheck.jsp | 14 ++- .../Flow/Comm/LBTelOnline/LbTelOnlinList.jsp | 41 +++++++-- WebContent/WEB-INF/etc/jbo/jbo_customer.xml | 17 ++++ .../validate/IdentityVerification.java | 86 ++++++++++++++----- .../flow/project/validate/OnlineClient.java | 14 ++- 5 files changed, 141 insertions(+), 31 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBCarIdentityCheck.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBCarIdentityCheck.jsp index cb633107c..3a6d71fe5 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBCarIdentityCheck.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBCarIdentityCheck.jsp @@ -6,6 +6,7 @@ History Log: */ String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号 + String customertype = CurPage.getParameter("CustomerType"); String orgName = CurUser.getOrgName(); String userName = CurUser.getUserName(); ASObjectModel doTemp = new ASObjectModel("VI_LB_IDENTITY_CHECK"); @@ -13,6 +14,7 @@ dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "1"; //只读模式 dwTemp.setPageSize(10); + dwTemp.MultiSelect = true; //添加多选框 dwTemp.genHTMLObjectWindow(sFlowUnid); //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 @@ -26,15 +28,25 @@ var flowunid = "<%=sFlowUnid%>"; var username = "<%=userName%>"; var orgname = "<%=orgName%>"; + var customertype = "<%=customertype%>"; + var relations=getItemValueArray(0,"relation").toString().replace(/,/g,"@"); + var fullNames=getItemValueArray(0,"fullName").toString().replace(/,/g,"@"); + + if(relations.length==0){ + alert("请先选择数据!!!"); + return; + } var result = - RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.IdentityVerification","doIdentityVerification","FlowUnid="+flowunid+",UserName="+username+",OrgName="+orgname); + RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.IdentityVerification","doIdentityVerification","FlowUnid="+flowunid+",UserName="+username+",OrgName="+orgname+",relations="+relations+",fullNames="+fullNames+",customertype="+customertype); if(result == 'ERROR'){ alert("调用数据失败"); + reloadSelf(); }else if(result == 'SUCCESS'){ alert('校验成功,请点击详情查看!'); reloadSelf(); }else{ alert(result); + reloadSelf(); } } function viewAndEdit(){ diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBTelOnline/LbTelOnlinList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBTelOnline/LbTelOnlinList.jsp index a684f5be4..c89869c72 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBTelOnline/LbTelOnlinList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBTelOnline/LbTelOnlinList.jsp @@ -14,6 +14,7 @@ dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "1"; //只读模式 dwTemp.setPageSize(10); + dwTemp.MultiSelect = true; //添加多选框 dwTemp.genHTMLObjectWindow(ProjectId); //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 @@ -25,7 +26,12 @@ <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml index 9d1a53718..03aa34a0c 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml @@ -3075,5 +3075,22 @@ + + + + + + + + + + + + + + + + + diff --git a/src_tenwa/com/tenwa/lease/flow/project/validate/IdentityVerification.java b/src_tenwa/com/tenwa/lease/flow/project/validate/IdentityVerification.java index 642c37ad7..825b67359 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/validate/IdentityVerification.java +++ b/src_tenwa/com/tenwa/lease/flow/project/validate/IdentityVerification.java @@ -30,6 +30,9 @@ public class IdentityVerification { private String FlowUnid; private String UserName; private String OrgName; + private String relations; + private String fullNames; + private String customertype; public String getFlowUnid() { return FlowUnid; @@ -54,6 +57,30 @@ public class IdentityVerification { public void setOrgName(String orgName) { OrgName = orgName; } + + public String getRelations() { + return relations; + } + + public void setRelations(String relations) { + this.relations = relations; + } + + public String getFullNames() { + return fullNames; + } + + public void setFullNames(String fullNames) { + this.fullNames = fullNames; + } + + public String getCustomertype() { + return customertype; + } + + public void setCustomertype(String customertype) { + this.customertype = customertype; + } public String doIdentityVerification(JBOTransaction tx){ System.err.println(UserName+"@"+OrgName+"@"+FlowUnid); @@ -62,41 +89,56 @@ public class IdentityVerification { BizObjectManager bom2 = JBOFactory.getBizObjectManager(CUSTOMER_FAMILY_TEMP.CLASS_NAME, tx); BizObjectManager bom3 = JBOFactory.getBizObjectManager(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, tx); BizObjectManager bom4 = JBOFactory.getBizObjectManager(LC_IDENTITY_CHECK_RESULT_TEMP.CLASS_NAME,tx); - BizObject queryResult = bom4.createQuery("select result from O where flowunid=:FLOWUNID").setParameter("FLOWUNID",FlowUnid).getSingleResult(false); + String newfullName = fullNames.replace("@", "','"); + System.out.println(newfullName); + BizObject queryResult = bom4.createQuery("select result from O where flowunid=:FLOWUNID and name in ('"+newfullName+"')").setParameter("FLOWUNID",FlowUnid).getSingleResult(false); if(queryResult!=null){ - return "身份证校验已执行过,不可重复执行"; - }else{ - //查询共同借款人 - BizObject coborrowerResult = bom2.createQuery("SELECT "+ - "name,"+ - "certid "+ - "FROM "+ - "O WHERE flowunid=:FLOWUNID AND Partner_ = 'Y'").setParameter("FLOWUNID", FlowUnid).getSingleResult(false); - //查询担保人 - @SuppressWarnings("unchecked") - List guarantorResultList = bom3.createQuery("SELECT "+ - "fullname,"+ - "certid "+ - "FROM "+ - "O WHERE flowunid=:FLOWUNID " - ).setParameter("FLOWUNID",FlowUnid).getResultList(false); - //查询借款人 - BizObject borrowerResult = bom1.createQuery("SELECT "+ + return "数据中已有身份证校验已校验过,不可重复执行!!!"; + }else{ + String[] NewRelations = relations.split("@"); + BizObject coborrowerResult = null; + @SuppressWarnings("unchecked") + List guarantorResultList = null ; + BizObject borrowerResult = null; + for(int i=0;i> ds = DataOperatorUtil.getDataBySql(tx, sql, null); if(ds.size()>0){ @@ -258,6 +260,12 @@ public class OnlineClient { public void setUserId(String userId) { this.userId = userId; } + public String getCertids() { + return certids; + } + public void setCertids(String certids) { + this.certids = certids; + }