From 01710e902572027f006cab6e70401fec36a0e1ed Mon Sep 17 00:00:00 2001 From: zzk Date: Fri, 22 Sep 2023 10:40:44 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=9F=A5=E8=AF=A2=E6=94=B9=E4=B8=BA=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E6=98=BE=E7=A4=BA,=E4=B8=9A=E5=8A=A1=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=BB=93=E6=9D=9F=E5=90=8E=E6=95=B0=E6=8D=AE=E5=BD=95?= =?UTF-8?q?=E5=85=A5=E6=AD=A3=E5=BC=8F=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerHistoryInformation.jsp | 23 ++- .../CustomerHistory_Info_temp.jsp | 8 +- WebContent/WEB-INF/etc/jbo/jbo_comm.xml | 55 ++++- .../InsertCustomerHistoryInfo.java | 10 +- .../comm/flow/CUSTOMER_HISTORY_INFO.java | 190 ++++++++++++++++++ .../handler/CustomerHistoryInfoHandler.java | 62 ++++++ .../CustomerHistoryInfoTempKeep.java | 33 +++ 7 files changed, 364 insertions(+), 17 deletions(-) create mode 100644 src_jbo/jbo/com/tenwa/entity/comm/flow/CUSTOMER_HISTORY_INFO.java create mode 100644 src_tenwa/com/tenwa/flow/comm/handler/CustomerHistoryInfoHandler.java create mode 100644 src_tenwa/com/tenwa/lease/flow/project/commbusiness/CustomerHistoryInfoTempKeep.java diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp index b4136216a..6da269714 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp @@ -9,18 +9,26 @@ String RightType=CurPage.getParameter("RightType"); String productId=CurPage.getParameter("ProductId"); String projectId=CurPage.getParameter("ProjectId"); + String phaseNo = CurPage.getAttribute("PhaseNo"); //流程节点 String khcertid = Sqlca.getString("select cpt.certid from lb_union_lessee_temp lul left join customer_person_temp cpt on cpt.FLOWUNID = lul.FLOWUNID where lul.IS_MAIN = 'Y' and lul.flowunid='"+flowunid+"'"); String gtcertid = Sqlca.getString("select cf.certid from customer_family_temp cf where cf.Partner_ = 'Y' and cf.flowunid='"+flowunid+"'"); String dbcertid = Sqlca.getString("select CERTID from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID asc limit 1"); String dbcertid2 = Sqlca.getString("select CERTID from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID desc limit 1"); + + //客户名称 + String khcertname = Sqlca.getString("select cpt.FULLNAME from lb_union_lessee_temp lul left join customer_person_temp cpt on cpt.FLOWUNID = lul.FLOWUNID where lul.IS_MAIN = 'Y' and lul.flowunid='"+flowunid+"'"); + String gtcertname = Sqlca.getString("select cf.name from customer_family_temp cf where cf.Partner_ = 'Y' and cf.flowunid='"+flowunid+"'"); + String dbcertname = Sqlca.getString("select FULLNAME from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID asc limit 1"); + String dbcertname2 = Sqlca.getString("select FULLNAME from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID desc limit 1"); + //客户传参 - String params="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+khcertid+"&type=client"; + String params="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+khcertid+"&customername="+khcertname+"&phaseNo="+phaseNo+"&type=client"; //共同承租人传参 - String params2="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+gtcertid+"&type=jointly"; + String params2="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+gtcertid+"&customername="+gtcertname+"&phaseNo="+phaseNo+"&type=jointly"; //担保人1传参 - String params3="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid+"&type=guarantee"; + String params3="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid+"&customername="+dbcertname+"&phaseNo="+phaseNo+"&type=guarantee"; //担保人2参数 - String params4="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid2+"&type=guarantee"; + String params4="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid2+"&customername="+dbcertname2+"&phaseNo="+phaseNo+"&type=guarantee"; //判断是否有共同承租人和担保人 String custnum1 = Sqlca.getString("select count(cf.id) as num from customer_family_temp cf where cf.Partner_ = 'Y' and cf.flowunid='"+flowunid+"'"); @@ -47,12 +55,5 @@ %> <%@ include file="/Resources/CodeParts/Tab01.jsp"%> <%@ include file="/IncludeEnd.jsp"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp index 60f6a3b69..4cb283ecd 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp @@ -8,10 +8,16 @@ History Log: */ - String sTempletNo = "CustomerHistoryInfoTemp";//--模板号-- String flowunId=CurPage.getParameter("flowunid");//流程编号 String certId=CurPage.getParameter("certId");//客户证件号 String type =CurPage.getParameter("type");//客户类型 + String phaseNo = CurPage.getAttribute("PhaseNo"); + String sTempletNo = "";//--模板号-- + if(phaseNo.equals("1000")){ + sTempletNo = "CustomerHistoryInfoTemp"; + }else { + sTempletNo = "CustomerHistoryInfo"; + } ASObjectModel doTemp = new ASObjectModel(sTempletNo); ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); dwTemp.Style = "2";//freeform diff --git a/WebContent/WEB-INF/etc/jbo/jbo_comm.xml b/WebContent/WEB-INF/etc/jbo/jbo_comm.xml index ecf50004e..3a2dbd15f 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_comm.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_comm.xml @@ -927,7 +927,6 @@ - @@ -982,6 +981,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src_core/com/tenwa/voucher/CreateVoucherProcess/InsertCustomerHistoryInfo.java b/src_core/com/tenwa/voucher/CreateVoucherProcess/InsertCustomerHistoryInfo.java index 99b6811f0..a00aa19f7 100644 --- a/src_core/com/tenwa/voucher/CreateVoucherProcess/InsertCustomerHistoryInfo.java +++ b/src_core/com/tenwa/voucher/CreateVoucherProcess/InsertCustomerHistoryInfo.java @@ -32,11 +32,10 @@ public class InsertCustomerHistoryInfo { } //获取客户历史信息 - public String InsertCustomerHistoryInfoTemp(JBOTransaction tx) throws Exception{ + public static String InsertCustomerHistoryInfoTemp(String flowunid) throws Exception{ try { - tx= JBOFactory.createJBOTransaction(); + JBOTransaction tx= JBOFactory.createJBOTransaction(); Conn conn = new Conn(tx); - String flowunid = this.flowunid; //获取客户基本信息 String sql = "select cpt.customerid,cpt.FULLNAME as customername,cpt.certtype,cpt.certid,'主承租人' as customertype,'' as customer_num,lul.FLOWUNID,lul.project_id from customer_person_temp cpt left join lb_union_lessee_temp lul on cpt.FLOWUNID = lul.FLOWUNID where lul.IS_MAIN = 'Y' and lul.FLOWUNID = '"+flowunid+"' \n" + "union \n" + @@ -356,8 +355,9 @@ public class InsertCustomerHistoryInfo { }catch (Exception e){ e.printStackTrace(); + return "falser"; } - return "SUCCEEDED"; + return "true"; } @@ -714,6 +714,8 @@ public class InsertCustomerHistoryInfo { } Map map = new HashMap<>(); + + map.put("clientbuynumber", gmnum); map.put("clientfinancingamount", CLEAN_LEASE_MONEY); map.put("clientclosedaccount", jq_number); diff --git a/src_jbo/jbo/com/tenwa/entity/comm/flow/CUSTOMER_HISTORY_INFO.java b/src_jbo/jbo/com/tenwa/entity/comm/flow/CUSTOMER_HISTORY_INFO.java new file mode 100644 index 000000000..750222736 --- /dev/null +++ b/src_jbo/jbo/com/tenwa/entity/comm/flow/CUSTOMER_HISTORY_INFO.java @@ -0,0 +1,190 @@ +package jbo.com.tenwa.entity.comm.flow; + +/** + * 客户历史信息 - JBO命名常量类

+ * Note: This file is generated by ADE tools, dont modify it.
+ + */ +public interface CUSTOMER_HISTORY_INFO { + /** + * 客户历史信息

+ * 代表本类映射的BizObjectClass + */ + public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.flow.CUSTOMER_HISTORY_INFO"; + /** + * ID STRING(32)
+ */ + public static final String id = "id"; + /** + * 客户编号 STRING(40)
+ */ + public static final String customerid = "customerid"; + /** + * 客户名称 STRING(200)
+ */ + public static final String customername = "customername"; + /** + * 证件类型 STRING(20)
+ */ + public static final String certtype = "certtype"; + /** + * 证件号 STRING(20)
+ */ + public static final String certid = "certid"; + /** + * 客户类别 STRING(20)
+ */ + public static final String customertype = "customertype"; + /** + * 流程编号 STRING(32)
+ */ + public static final String flowunid = "flowunid"; + /** + * 项目编号 STRING(32)
+ */ + public static final String project_id = "project_id"; + /** + * 客户购买次数 STRING(10)
+ */ + public static final String clientbuynumber = "clientbuynumber"; + /** + * 客户融资金额 STRING(32)
+ */ + public static final String clientfinancingamount = "clientfinancingamount"; + /** + * 客户已结清单数 STRING(10)
+ */ + public static final String clientclosedaccount = "clientclosedaccount"; + /** + * 客户未结清单数 STRING(10)
+ */ + public static final String clientunsettled = "clientunsettled"; + /** + * 客户车辆总数 STRING(10)
+ */ + public static final String clientvehiclepopulation = "clientvehiclepopulation"; + /** + * 客户结清车辆数 STRING(10)
+ */ + public static final String clientclosedvehicle = "clientclosedvehicle"; + /** + * 客户未结清车辆数 STRING(10)
+ */ + public static final String clientoutstandingvehicle = "clientoutstandingvehicle"; + /** + * 客户贷款余额 STRING(10)
+ */ + public static final String clientloanbalance = "clientloanbalance"; + /** + * 客户逾期金额 STRING(10)
+ */ + public static final String clientoverdueamount = "clientoverdueamount"; + /** + * 共同购买次数 STRING(10)
+ */ + public static final String jointlybuynumber = "jointlybuynumber"; + /** + * 共同融资金额 STRING(32)
+ */ + public static final String jointlyfinancingamount = "jointlyfinancingamount"; + /** + * 共同已结清单数 STRING(10)
+ */ + public static final String jointlyclosedaccount = "jointlyclosedaccount"; + /** + * 共同未结清单数 STRING(10)
+ */ + public static final String jointlyunsettled = "jointlyunsettled"; + /** + * 共同车辆总数 STRING(10)
+ */ + public static final String jointlyveh = "jointlyveh"; + /** + * 共同结清车辆数 STRING(10)
+ */ + public static final String jointlyclosedvehicle = "jointlyclosedvehicle"; + /** + * 共同未结清车辆数 STRING(10)
+ */ + public static final String jointlyout = "jointlyout"; + /** + * 共同贷款余额 STRING(10)
+ */ + public static final String jointlyloanbalance = "jointlyloanbalance"; + /** + * 共同逾期金额 STRING(10)
+ */ + public static final String jointlyoverdueamount = "jointlyoverdueamount"; + /** + * 担保单数 STRING(10)
+ */ + public static final String guaranteebuynumber = "guaranteebuynumber"; + /** + * 担保金额 STRING(32)
+ */ + public static final String guaranteefin = "guaranteefin"; + /** + * 担保已结清单数 STRING(10)
+ */ + public static final String guaranteeclosedaccount = "guaranteeclosedaccount"; + /** + * 担保未结清单数 STRING(10)
+ */ + public static final String guaranteeunsettled = "guaranteeunsettled"; + /** + * 担保车辆总数 STRING(10)
+ */ + public static final String guaranteeveh = "guaranteeveh"; + /** + * 担保结清车辆数 STRING(10)
+ */ + public static final String guaranteeclosedvehicle = "guaranteeclosedvehicle"; + /** + * 担保未结清车辆数 STRING(10)
+ */ + public static final String guaranteeout = "guaranteeout"; + /** + * 担保贷款余额 STRING(10)
+ */ + public static final String guaranteeloanbalance = "guaranteeloanbalance"; + /** + * 担保逾期金额 STRING(10)
+ */ + public static final String guaranteeoverdueamount = "guaranteeoverdueamount"; + /** + * 备注 STRING(250)
+ */ + public static final String remark = "remark"; + /** + * 客户编码 STRING(32)
+ */ + public static final String customer_num = "customer_num"; + /** + * 登记人 STRING(32)
+ */ + public static final String inputuserid = "inputuserid"; + /** + * 登记机构 STRING(32)
+ */ + public static final String inputorgid = "inputorgid"; + /** + * 登记时间 STRING(32)
+ */ + public static final String inputtime = "inputtime"; + /** + * 更新人 STRING(32)
+ */ + public static final String updateuserid = "updateuserid"; + /** + * 更新部门 STRING(32)
+ */ + public static final String updateorgid = "updateorgid"; + /** + * 更新时间 STRING(32)
+ */ + public static final String updatetime = "updatetime"; + /** + * 敞口 STRING(32)
+ */ + public static final String exposure = "exposure"; +} diff --git a/src_tenwa/com/tenwa/flow/comm/handler/CustomerHistoryInfoHandler.java b/src_tenwa/com/tenwa/flow/comm/handler/CustomerHistoryInfoHandler.java new file mode 100644 index 000000000..1186dac02 --- /dev/null +++ b/src_tenwa/com/tenwa/flow/comm/handler/CustomerHistoryInfoHandler.java @@ -0,0 +1,62 @@ +package com.tenwa.flow.comm.handler; + +import com.amarsoft.app.lc.workflow.action.GetFlowAction; +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.are.jbo.JBOTransaction; +import com.amarsoft.awe.dw.handler.impl.CommonHandler; +import com.tenwa.voucher.CreateVoucherProcess.InsertCustomerHistoryInfo; +import jbo.com.tenwa.entity.comm.flow.CUSTOMER_HISTORY_INFO; + +import java.util.HashMap; +import java.util.Map; + +public class CustomerHistoryInfoHandler extends CommonHandler { + + @Override + protected void initDisplayForAdd(BizObject bo) throws Exception { + + Map map = new HashMap<>(); + String customername = this.asPage.getAttribute("customername"); + String flowunid = this.asPage.getAttribute("flowunid"); + String certid = this.asPage.getAttribute("certId"); + map = InsertCustomerHistoryInfo.CustomerHistoryInfo(flowunid,certid); + //主承租人 + bo.setAttributeValue("CUSTOMERNAME",customername); + bo.setAttributeValue("CLIENTBUYNUMBER", map.get("clientbuynumber")); + bo.setAttributeValue("CLIENTFINANCINGAMOUNT", map.get("clientfinancingamount")); + bo.setAttributeValue("CLIENTCLOSEDACCOUNT", map.get("clientclosedaccount")); + bo.setAttributeValue("CLIENTUNSETTLED", map.get("clientunsettled")); + bo.setAttributeValue("CLIENTVEHICLEPOPULATION", map.get("clientvehiclepopulation")); + bo.setAttributeValue("CLIENTCLOSEDVEHICLE", map.get("clientclosedvehicle")); + bo.setAttributeValue("CLIENTOUTSTANDINGVEHICLE", map.get("clientoutstandingvehicle")); + bo.setAttributeValue("CLIENTLOANBALANCE",map.get("clientloanbalance")); + bo.setAttributeValue("CLIENTOVERDUEAMOUNT",map.get("clientoverdueamount")); + //共同承租人 + bo.setAttributeValue("JOINTLYBUYNUMBER", map.get("jointlybuynumber")); + bo.setAttributeValue("JOINTLYFINANCINGAMOUNT", map.get("jointlyfinancingamount")); + bo.setAttributeValue("JOINTLYCLOSEDACCOUNT", map.get("jointlyclosedaccount")); + bo.setAttributeValue("JOINTLYUNSETTLED", map.get("jointlyunsettled")); + bo.setAttributeValue("JOINTLYVEH", map.get("jointlyveh")); + bo.setAttributeValue("JOINTLYCLOSEDVEHICLE", map.get("jointlyclosedvehicle")); + bo.setAttributeValue("JOINTLYOUT", map.get("jointlyout")); + bo.setAttributeValue("JOINTLYLOANBALANCE",map.get("jointlyloanbalance")); + bo.setAttributeValue("JOINTLYOVERDUEAMOUNT",map.get("jointlyoverdueamount")); + //担保人 + bo.setAttributeValue("GUARANTEEBUYNUMBER", map.get("guaranteebuynumber")); + bo.setAttributeValue("GUARANTEEFIN", map.get("guaranteefin")); + bo.setAttributeValue("GUARANTEECLOSEDACCOUNT", map.get("guaranteeclosedaccount")); + bo.setAttributeValue("GUARANTEEUNSETTLED", map.get("guaranteeunsettled")); + bo.setAttributeValue("GUARANTEEVEH", map.get("guaranteeveh")); + bo.setAttributeValue("GUARANTEECLOSEDVEHICLE", map.get("guaranteeclosedvehicle")); + bo.setAttributeValue("GUARANTEEOUT", map.get("guaranteeout")); + bo.setAttributeValue("GUARANTEELOANBALANCE",map.get("guaranteeloanbalance")); + bo.setAttributeValue("GUARANTEEOVERDUEAMOUNT", map.get("guaranteeoverdueamount")); + + bo.setAttributeValue("EXPOSURE", map.get("exposure")); + + super.initDisplayForAdd(bo); + } + +} diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/CustomerHistoryInfoTempKeep.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/CustomerHistoryInfoTempKeep.java new file mode 100644 index 000000000..ef8a617d9 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/CustomerHistoryInfoTempKeep.java @@ -0,0 +1,33 @@ +package com.tenwa.lease.flow.project.commbusiness; + +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.comm.util.jboutil.DataOperatorUtil; +import com.tenwa.flow.baseBussion.BaseBussiness; +import com.tenwa.lease.flow.project.businessapply.CustomerCompare; +import com.tenwa.voucher.CreateVoucherProcess.InsertCustomerHistoryInfo; +import jbo.app.tenwa.customer.*; +import jbo.com.tenwa.lease.comm.CUST_PERSON_HIS; +import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE; +import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP; +import jbo.com.tenwa.lease.comm.VI_CUST_TENANT; +import org.apache.commons.lang3.StringUtils; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; + +public class CustomerHistoryInfoTempKeep extends BaseBussiness { + + @SuppressWarnings("unchecked") + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowunid = this.getAttribute("FlowUnid").toString(); + String sMessage = InsertCustomerHistoryInfo.InsertCustomerHistoryInfoTemp(flowunid); + return sMessage; + } +} \ No newline at end of file From 7fb9882f2dd94af246424d2361d3d14b1eec9eea Mon Sep 17 00:00:00 2001 From: zzk Date: Fri, 22 Sep 2023 10:54:43 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=9F=A5=E8=AF=A2=E6=94=B9=E4=B8=BA=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E6=98=BE=E7=A4=BA=E8=8A=82=E7=82=B9=E5=8F=96=E5=80=BC?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp index 4cb283ecd..189c834ea 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp @@ -11,7 +11,7 @@ String flowunId=CurPage.getParameter("flowunid");//流程编号 String certId=CurPage.getParameter("certId");//客户证件号 String type =CurPage.getParameter("type");//客户类型 - String phaseNo = CurPage.getAttribute("PhaseNo"); + String phaseNo = CurPage.getParameter("PhaseNo"); String sTempletNo = "";//--模板号-- if(phaseNo.equals("1000")){ sTempletNo = "CustomerHistoryInfoTemp"; From 92e45e661f237a29fc5014d0d2267530ad22568e Mon Sep 17 00:00:00 2001 From: "zhanglei@ap-leasing.com.cn" Date: Fri, 22 Sep 2023 13:39:57 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E9=A3=8E=E6=8E=A7=E4=B8=AD=E5=8F=B0-?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=84=E5=88=86=E5=8E=86=E5=8F=B2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessApplication/RCScoreResult.jsp | 7 +- WebContent/WEB-INF/etc/jbo/jbo_oti.xml | 8 ++- .../ample/esb/controller/AmpController.java | 66 ++++++++++++++++++- .../esb/service/impl/AmpServiceImpl.java | 2 + src_jbo/jbo/oti/RC_SCORE_LOG.java | 20 ++++-- 5 files changed, 95 insertions(+), 8 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResult.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResult.jsp index b214074d7..566120f67 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResult.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResult.jsp @@ -10,6 +10,8 @@ String userId= CurUser.getUserID(); String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号 String projectNo=CurPage.getParameter("ProjectNo");//项目编号 + String phaseNo=CurPage.getParameter("PhaseNo");//流程节点 + String flowNo=CurPage.getParameter("FlowNo");//流程编号 String compClientID = CurPage.getParameter("CompClientID"); String detailUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResultDetail.jsp?CompClientID="; String sTempletNo = "queryScoreResult";//--模板号-- @@ -54,7 +56,10 @@ function amp(){ var flowUnid = "<%=sFlowUnid%>"; var curUserId = "<%=userId%>"; - var result = RunJavaMethodTrans("com.ample.esb.controller.AmpController","ampDo","flowUnid="+flowUnid+",operatorId="+curUserId); + var flowNo = "<%=flowNo%>"; + var phaseNo = "<%=phaseNo%>"; + var projectNo = "<%=projectNo%>"; + var result = RunJavaMethodTrans("com.ample.esb.controller.AmpController","ampDo","flowUnid="+flowUnid+",operatorId="+curUserId+",flowNo="+flowNo+",phaseNo="+phaseNo+",projectNo="+projectNo); alert(result); self.location.reload(); } diff --git a/WebContent/WEB-INF/etc/jbo/jbo_oti.xml b/WebContent/WEB-INF/etc/jbo/jbo_oti.xml index 92230e217..1e779c77e 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_oti.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_oti.xml @@ -870,11 +870,17 @@ - + + + + + + + diff --git a/src/com/ample/esb/controller/AmpController.java b/src/com/ample/esb/controller/AmpController.java index 0c042d2dd..82a89b12f 100644 --- a/src/com/ample/esb/controller/AmpController.java +++ b/src/com/ample/esb/controller/AmpController.java @@ -1,9 +1,13 @@ package com.ample.esb.controller; -import com.amarsoft.are.jbo.JBOTransaction; +import com.amarsoft.are.jbo.*; +import com.amarsoft.dict.als.manage.NameManager; +import com.ample.esb.bean.esb.MessageEsbHead; import com.ample.esb.bean.esb.Transaction; import com.ample.esb.service.AmpService; import com.ample.esb.service.impl.AmpServiceImpl; +import com.ample.esb.util.DateUtils; +import jbo.sys.FLOW_MODEL; import java.util.HashMap; import java.util.Map; @@ -11,6 +15,9 @@ import java.util.Map; public class AmpController { private String operatorId; private String flowUnid; + private String flowNo; + private String phaseNo; + private String projectNo; public String ampDo(JBOTransaction tx) throws Exception { Map map = new HashMap(); map.put("flowUnid",flowUnid); @@ -25,6 +32,7 @@ public class AmpController { public String resultAnalysis(Transaction tran){ String response = ""; String retCode = tran.getMessageEsbHead().getRetCode(); + saveScoreLog(tran); if("000000".equals(retCode)){ response = "操作成功!"; }else{ @@ -32,7 +40,40 @@ public class AmpController { } return response; } - + public void saveScoreLog(com.ample.esb.bean.esb.Transaction tran){ + BizObjectManager bom = null; + try { + bom = JBOFactory.getBizObjectManager("jbo.oti.RC_SCORE_LOG"); + MessageEsbHead esbHead = tran.getMessageEsbHead(); + BizObject bo = bom.newObject(); + bo.setAttributeValue("GLOBAL_SEQ_NO",esbHead.getGlobalSeqNo()); + bo.setAttributeValue("FLOW_NODE",phaseNo); + bo.setAttributeValue("FLOW_NODE_NAME",flowNodeName(flowNo,phaseNo)); + bo.setAttributeValue("INPUTUSERID",operatorId); + String userName = NameManager.getUserName(operatorId); + bo.setAttributeValue("INPUTUSERNAME",userName); + bo.setAttributeValue("FLOW_UNID",flowUnid); + bo.setAttributeValue("INPUTTIME", DateUtils.dateTimeNow()); + String retCode = tran.getMessageEsbHead().getRetCode(); + bo.setAttributeValue("RET_CODE", retCode); + bo.setAttributeValue("PROJECT_NO", projectNo); + bom.saveObject(bo); + } catch (JBOException e) { + e.printStackTrace(); + } catch (Exception e) { + e.printStackTrace(); + } + } + public String flowNodeName(String flowNo,String phaseNo){ + String flowNodeName = ""; + try { + BizObject bo = JBOFactory.createBizObjectQuery(FLOW_MODEL.CLASS_NAME,"select PHASENAME from O where flowno=:flowno and phaseno=:phaseno").setParameter("flowno",flowNo).setParameter("phaseno",phaseNo).getSingleResult(false); + flowNodeName = bo.getAttribute("PHASENAME").toString(); + } catch (JBOException e) { + e.printStackTrace(); + } + return flowNodeName; + } public String getOperatorId() { return operatorId; @@ -50,6 +91,27 @@ public class AmpController { this.flowUnid = flowUnid; } + public String getFlowNo() { + return flowNo; + } + public void setFlowNo(String flowNo) { + this.flowNo = flowNo; + } + public String getPhaseNo() { + return phaseNo; + } + + public void setPhaseNo(String phaseNo) { + this.phaseNo = phaseNo; + } + + public String getProjectNo() { + return projectNo; + } + + public void setProjectNo(String projectNo) { + this.projectNo = projectNo; + } } diff --git a/src/com/ample/esb/service/impl/AmpServiceImpl.java b/src/com/ample/esb/service/impl/AmpServiceImpl.java index 171902b0e..1c041bde1 100644 --- a/src/com/ample/esb/service/impl/AmpServiceImpl.java +++ b/src/com/ample/esb/service/impl/AmpServiceImpl.java @@ -114,6 +114,8 @@ public class AmpServiceImpl extends EsbCommon implements AmpService { } return app; } + + //公共参数 //订单临时表 private BizObject boLpit; diff --git a/src_jbo/jbo/oti/RC_SCORE_LOG.java b/src_jbo/jbo/oti/RC_SCORE_LOG.java index 4e8e1587f..d3ab1cfa9 100644 --- a/src_jbo/jbo/oti/RC_SCORE_LOG.java +++ b/src_jbo/jbo/oti/RC_SCORE_LOG.java @@ -20,15 +20,19 @@ public interface RC_SCORE_LOG { */ public static final String GLOBAL_SEQ_NO = "GLOBAL_SEQ_NO"; /** - * 全局唯一标识 LONG(64)
+ * 节点名称 LONG(64)
+ */ + public static final String FLOW_NODE = "FLOW_NODE"; + /** + * 节点名称 LONG(64)
*/ public static final String FLOW_NODE_NAME = "FLOW_NODE_NAME"; /** - * 交易码(15)
+ * 流程id(15)
*/ public static final String FLOW_UNID = "FLOW_UNID"; /** - * 服务id STRING(990)
+ * 返回结果时间 STRING(990)
*/ public static final String RESULT_TIME = "RESULT_TIME"; /** @@ -36,9 +40,17 @@ public interface RC_SCORE_LOG { */ public static final String RET_CODE = "RET_CODE"; + public static final String PROJECT_NO = "PROJECT_NO"; + public static final String INPUTUSERID = "INPUTUSERID"; + public static final String INPUTUSERNAME = "INPUTUSERNAME"; + public static final String INPUTTIME = "INPUTTIME"; - + public static final String FRAUD_ALERT_CODE = "FRAUD_ALERT_CODE"; + + public static final String FRAUD_TAKEN_CODE = "FRAUD_TAKEN_CODE"; + + public static final String SCORE_RESULT_CODE = "SCORE_RESULT_CODE"; } \ No newline at end of file From 00b85bfffa611668e23038b4eb6f67c82ecd6d6f Mon Sep 17 00:00:00 2001 From: "zhanglei@ap-leasing.com.cn" Date: Fri, 22 Sep 2023 13:49:58 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E9=A3=8E=E6=8E=A7=E4=B8=AD=E5=8F=B0-?= =?UTF-8?q?=E4=BF=A1=E5=AE=A1=E8=B5=84=E6=96=99=E6=B8=85=E5=8D=95=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=A0=B9=E6=8D=AE=E6=B5=81=E7=A8=8B=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E8=80=8C=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Project/BusinessApplication/BusinessProjectTempInfo.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp index e6699ff83..512b3e3e6 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp @@ -226,7 +226,7 @@ function getRequestParamOfCredit(){ let code = 'ECM0002'; - if(("<%=FlowNo%>"=="BusinessApplyFlow"||"<%=FlowNo%>"=="BusinessChangeFlow")&&("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"||"0070"=="<%=sPhaseNo%>")&&"ReadOnly"!="<%=rightType%>"){ + if(("<%=FlowNo%>"=="BusinessApplyFlow"||"<%=FlowNo%>"=="BusinessChangeFlow")&&("<%=sPhaseNo%>"!="0010")&&"ReadOnly"!="<%=rightType%>"){ code = 'ECM0001'; } let busiNo="<%=projectNo%>"; From 61ab6f9d88aad8600bad86b62dad94e00939ec08 Mon Sep 17 00:00:00 2001 From: zzk Date: Fri, 22 Sep 2023 14:12:35 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E7=BB=8F=E9=94=80=E5=95=86=E7=95=99?= =?UTF-8?q?=E8=A8=80=E6=94=B9=E4=B8=BA=E5=8F=AA=E6=9C=89=E9=80=80=E5=9B=9E?= =?UTF-8?q?=E5=88=B0=E7=BB=8F=E9=94=80=E5=95=86=E6=97=B6=E6=89=8D=E6=9C=89?= =?UTF-8?q?=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tenwa/Core/FlowManager/BaseFunction/BaseFlowFunction.jspf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebContent/Tenwa/Core/FlowManager/BaseFunction/BaseFlowFunction.jspf b/WebContent/Tenwa/Core/FlowManager/BaseFunction/BaseFlowFunction.jspf index 171fb5674..33538c42b 100644 --- a/WebContent/Tenwa/Core/FlowManager/BaseFunction/BaseFlowFunction.jspf +++ b/WebContent/Tenwa/Core/FlowManager/BaseFunction/BaseFlowFunction.jspf @@ -143,7 +143,7 @@ FlowFunction.backStep=function(sObjectType,sObjectNo,sFlowNo,sPhaseNo,sTaskNo,sF }} //判断经销商留言是否填写 - if (sPhaseNo = "0030") { + if (sPhaseNo == "0030") { var isopenmassge = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction", "getjxsmessage", "TaskNo=" + sTaskNo); if (isopenmassge == "Y") { return this.getDealerMessage(sObjectNo, sPhaseNo, sTaskNo); From 3dc732e1e62ddef27a109d63ccf36cc999a36775 Mon Sep 17 00:00:00 2001 From: yjf <2211675158@qq.com> Date: Fri, 22 Sep 2023 14:22:50 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E4=BF=A1=E5=AE=A1=E5=A4=8D=E5=AE=A1?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=97=B6=EF=BC=8C=E9=9C=80=E8=A6=81=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E5=AE=A1=E6=89=B9=E6=97=B6=E7=82=B9=E7=9A=84=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E8=AE=B0=E5=BD=95=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerHistory_Info_temp.jsp | 2 +- .../Comm/CustomerHistory/LoanedInfo.jsp | 10 ++++- .../Comm/CustomerHistory/OutstandInfo.jsp | 10 ++++- WebContent/WEB-INF/etc/jbo/jbo_lease.xml | 23 +++++++++++ src/com/amarsoft/app/flow/FlowAction.java | 2 +- .../ProjectHisInsertBusiness.java | 38 +++++++++++++++++++ 6 files changed, 79 insertions(+), 6 deletions(-) create mode 100644 src_tenwa/com/tenwa/lease/flow/project/commbusiness/ProjectHisInsertBusiness.java diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp index 189c834ea..cf35694db 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp @@ -33,7 +33,7 @@ String compClientID = request.getParameter("CompClientID"); - dwTemp.replaceColumn("loaned", "", CurPage.getObjectWindowOutput()); + dwTemp.replaceColumn("loaned", "", CurPage.getObjectWindowOutput()); dwTemp.replaceColumn("outstand", "", CurPage.getObjectWindowOutput()); diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/LoanedInfo.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/LoanedInfo.jsp index 6af9d6130..a63ec5ee2 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/LoanedInfo.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/LoanedInfo.jsp @@ -5,16 +5,22 @@ String certId = CurPage.getParameter("certId"); String flowunId = CurPage.getParameter("flowunId"); + String isHistory = CurPage.getParameter("IsHistory"); CurPage.setAttribute("flowRowCount", "20"); CurPage.setAttribute("pageIdentify", "loan"); ASObjectModel doTemp = new ASObjectModel("LoanedListNew"); + if ("true".equals(isHistory)) { + doTemp = new ASObjectModel("LoanedListHis"); + doTemp.appendJboWhere(" and O.FLOWUNID_HIS='" + flowunId + "' and o.CONTRACT_STATUS in ('31','100','105')"); + } else { + doTemp.appendJboWhere(" and o.CONTRACT_STATUS in ('31','100','105')"); + } doTemp.setDataQueryClass("com.amarsoft.awe.dw.ui.list.FlowMonitorListHtmlGenerator"); - doTemp.appendJboWhere(" and o.CONTRACT_STATUS in ('31','100','105')"); ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1";//--设置为Grid风格-- dwTemp.ReadOnly = "1";//只读模式 dwTemp.setPageSize(20); - doTemp.setVisible("PROJECT_ID,FLOWUNID,CERTID_WITH_ROLE,CONTRACT_STATUS,business_status",false); + doTemp.setVisible("PROJECT_ID,FLOWUNID,CERTID_WITH_ROLE,CONTRACT_STATUS,business_status,FLOWUNID_HIS",false); dwTemp.genHTMLObjectWindow(certId); String sButtons[][] = { diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/OutstandInfo.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/OutstandInfo.jsp index 8cd8c4a49..9eda496ae 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/OutstandInfo.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/OutstandInfo.jsp @@ -6,15 +6,21 @@ String certId = CurPage.getParameter("certId"); String flowunId = CurPage.getParameter("flowunId"); + String isHistory = CurPage.getParameter("IsHistory"); CurPage.setAttribute("flowRowCount", "20"); ASObjectModel doTemp = new ASObjectModel("LoanedListNew"); + if ("true".equals(isHistory)) { + doTemp = new ASObjectModel("LoanedListHis"); + doTemp.appendJboWhere(" and O.FLOWUNID_HIS='"+flowunId+"' and o.CONTRACT_STATUS not in ('100','105','31') and (flowunid not in ('"+flowunId+"') or v.isnull(flowunid))"); + }else{ + doTemp.appendJboWhere(" and o.CONTRACT_STATUS not in ('100','105','31') and (flowunid not in ('"+flowunId+"') or v.isnull(flowunid))"); + } doTemp.setDataQueryClass("com.amarsoft.awe.dw.ui.list.FlowMonitorListHtmlGenerator"); - doTemp.appendJboWhere(" and o.CONTRACT_STATUS not in ('100','105','31') and (flowunid not in ('"+flowunId+"') or v.isnull(flowunid))"); ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1";//--设置为Grid风格-- dwTemp.ReadOnly = "1";//只读模式 dwTemp.setPageSize(20); - doTemp.setVisible("PROJECT_ID,FLOWUNID,CERTID_WITH_ROLE,CONTRACT_STATUS,COUPUS_OVER,IS_OVERDUE",false); + doTemp.setVisible("PROJECT_ID,FLOWUNID,CERTID_WITH_ROLE,CONTRACT_STATUS,COUPUS_OVER,IS_OVERDUE,FLOWUNID_HIS",false); dwTemp.genHTMLObjectWindow(certId); String sButtons[][] = {}; %> diff --git a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml index b7751e166..eceda149e 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml @@ -5263,6 +5263,29 @@
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/com/amarsoft/app/flow/FlowAction.java b/src/com/amarsoft/app/flow/FlowAction.java index 9f529cca3..606b46a46 100644 --- a/src/com/amarsoft/app/flow/FlowAction.java +++ b/src/com/amarsoft/app/flow/FlowAction.java @@ -270,11 +270,11 @@ public class FlowAction { this.flowNo, "", this.getFlowStartActionParm(tx, objectNo)); } - deleteTaskService.initDeleteNodes(); deleteTaskService.exectueFlowDelete(); DataOperatorUtil.deleteJBOByCondtion(FLOW_WORK_FLAG.CLASS_NAME, condtion, tx); if (!"BusinessApplyFlow".equals(flowNo)) { //业务申请取消不删除数据,修改状态 + deleteTaskService.initDeleteNodes(); DataOperatorUtil.deleteJBOByCondtion( FLOW_BUSSINESS_OBJECT.CLASS_NAME, condtion, tx); condtion.clear(); diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/ProjectHisInsertBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/ProjectHisInsertBusiness.java new file mode 100644 index 000000000..32cacdd8b --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/ProjectHisInsertBusiness.java @@ -0,0 +1,38 @@ +package com.tenwa.lease.flow.project.commbusiness; + +import com.amarsoft.awe.util.ASResultSet; +import com.amarsoft.awe.util.SqlObject; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.flow.baseBussion.BaseBussiness; + +import java.util.ArrayList; +import java.util.stream.Collectors; + +/** + * 业务申请 客户历史查询数据结束入表 + */ +public class ProjectHisInsertBusiness extends BaseBussiness { + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowunid = this.getAttribute("FlowUnid").toString(); + + StringBuilder querySqlSb = new StringBuilder(); + querySqlSb.append(" select certid from customer_family_temp where Partner_ = 'Y' and flowunid = '"+flowunid+"'") + .append(" union ") + .append(" select certid from lb_guarantee_unit_temp where flowunid = '"+flowunid+"'") + .append(" union ") + .append(" select certid from lb_union_lessee_temp lul join customer_info_temp cit on lul.FLOWUNID = cit.flowunid where IS_MAIN = 'Y' and lul.flowunid = '"+flowunid+"'"); + ASResultSet asResultSet = Sqlca.getASResultSet(querySqlSb.toString()); + ArrayList conditionList = new ArrayList<>(); + while (asResultSet.next()) { + conditionList.add(asResultSet.getString("certid")); + } + if (conditionList.size() > 0) { + String whereSql = conditionList.stream().map(item -> String.format("locate('%s',certid_with_role)", item)).collect(Collectors.joining(" or ")); + Sqlca.executeSQL(new SqlObject("insert into lb_project_customer_his (PROJECT_ID,PROJECT_NO, FLOWUNID, CONTRACT_NO, CUSTOMER_NAME, DISTRIBUTOR_NAME, FIRST_PAYMENT_RATIO, CLEAN_LEASE_MONEY, LEASE_TERM, contract_status, business_status, certid_with_role,FLOWUNID_HIS) select *,'"+flowunid+"' from vi_project_his_list where "+whereSql)); + } + return "true"; + } +} From 0d2133918699a0d707ee0830a282f1dc2ed66396 Mon Sep 17 00:00:00 2001 From: zzk Date: Fri, 22 Sep 2023 14:32:43 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=BB=93=E6=9D=9F=E5=88=A4=E6=96=AD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Comm/CustomerHistory/CustomerHistoryInformation.jsp | 8 ++++---- .../Comm/CustomerHistory/CustomerHistory_Info_temp.jsp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp index 6da269714..998027ece 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistoryInformation.jsp @@ -22,13 +22,13 @@ String dbcertname2 = Sqlca.getString("select FULLNAME from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID desc limit 1"); //客户传参 - String params="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+khcertid+"&customername="+khcertname+"&phaseNo="+phaseNo+"&type=client"; + String params="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+khcertid+"&customername="+khcertname+"&phaseNo="+phaseNo+"&IsHistory="+IsHistory+"&type=client"; //共同承租人传参 - String params2="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+gtcertid+"&customername="+gtcertname+"&phaseNo="+phaseNo+"&type=jointly"; + String params2="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+gtcertid+"&customername="+gtcertname+"&phaseNo="+phaseNo+"&IsHistory="+IsHistory+"&type=jointly"; //担保人1传参 - String params3="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid+"&customername="+dbcertname+"&phaseNo="+phaseNo+"&type=guarantee"; + String params3="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid+"&customername="+dbcertname+"&phaseNo="+phaseNo+"&IsHistory="+IsHistory+"&type=guarantee"; //担保人2参数 - String params4="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid2+"&customername="+dbcertname2+"&phaseNo="+phaseNo+"&type=guarantee"; + String params4="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid2+"&customername="+dbcertname2+"&phaseNo="+phaseNo+"&IsHistory="+IsHistory+"&type=guarantee"; //判断是否有共同承租人和担保人 String custnum1 = Sqlca.getString("select count(cf.id) as num from customer_family_temp cf where cf.Partner_ = 'Y' and cf.flowunid='"+flowunid+"'"); diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp index cf35694db..9b5e7ebf9 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp @@ -11,9 +11,9 @@ String flowunId=CurPage.getParameter("flowunid");//流程编号 String certId=CurPage.getParameter("certId");//客户证件号 String type =CurPage.getParameter("type");//客户类型 - String phaseNo = CurPage.getParameter("PhaseNo"); + String IsHistory = CurPage.getParameter("IsHistory"); String sTempletNo = "";//--模板号-- - if(phaseNo.equals("1000")){ + if(IsHistory.equals("true")){ sTempletNo = "CustomerHistoryInfoTemp"; }else { sTempletNo = "CustomerHistoryInfo";