From 5984a6ff8dbe32a56c1583331f41b3ddc9847eaf Mon Sep 17 00:00:00 2001 From: tangfutang Date: Mon, 13 Apr 2020 21:21:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=EF=BC=88=E5=BC=A0=E7=A3=8A?= =?UTF-8?q?=EF=BC=89=E5=9C=A8=E4=BB=98=E6=AC=BE=E7=94=B3=E8=AF=B7=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=BB=8F=E9=94=80=E5=95=86=E6=8B=85=E4=BF=9D=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Fund/FundPayment/FundPaymentApplyList.jsp | 3 +- .../businessapply/DisChannelTypeCheck.java | 31 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src_tenwa/com/tenwa/lease/flow/project/businessapply/DisChannelTypeCheck.java diff --git a/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/FundPaymentApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/FundPaymentApplyList.jsp index ecbf0cac8..3aeec583e 100644 --- a/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/FundPaymentApplyList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/FundPaymentApplyList.jsp @@ -36,9 +36,10 @@ alert(checkTotal); return ; } + var disChannelType = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DisChannelTypeCheck","getDisChannelType","contractId="+contract_id); var gpsVendor = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.GpsVendorCheck","getGpsVendor","productId="+productId); - var sParams = "ContractId="+contract_id+",FlowKey="+contract_no+",ProjectId="+proj_id+",ProductId="+productId+",contract_number="+contract_number+",ProjectName="+(contract_no+"-"+customername)+",applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>,gpsVendor="+gpsVendor; + var sParams = "ContractId="+contract_id+",FlowKey="+contract_no+",ProjectId="+proj_id+",ProductId="+productId+",contract_number="+contract_number+",ProjectName="+(contract_no+"-"+customername)+",applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>,gpsVendor="+gpsVendor+",disChannelType="+disChannelType; var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams); var sReturnInfos=sReturnInfo.split("@"); if(sReturnInfos[0]=="success") diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/DisChannelTypeCheck.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/DisChannelTypeCheck.java new file mode 100644 index 000000000..a68fbf835 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/DisChannelTypeCheck.java @@ -0,0 +1,31 @@ +package com.tenwa.lease.flow.project.businessapply; + +import com.amarsoft.are.jbo.JBOTransaction; +import com.amarsoft.awe.util.Transaction; +import org.apache.commons.lang3.StringUtils; + +/** + * 对应的经销商类型是否为非担保性 + * @author Administrator + * + */ +public class DisChannelTypeCheck { + + private String contractId; + + public String getContractId() { + return contractId; + } + + public void setContractId(String contractId) { + this.contractId = contractId; + } + + public String getDisChannelType(JBOTransaction tx) throws Exception{ + Transaction Sqlca = Transaction.createTransaction(tx); + String dischanneltype = Sqlca.getString("select channeltype from DISTRIBUTOR_INFO where DISTRIBUTOR_NO = (select distributor_id from lb_contract_info where ID='"+contractId+"')"); + if(StringUtils.isEmpty(dischanneltype) || !"02".equals(dischanneltype)) + dischanneltype="null"; + return dischanneltype; + } +}