From 33808e42b60a38c56858c3cf06d125119038e97f Mon Sep 17 00:00:00 2001 From: zhangbb Date: Fri, 20 Sep 2019 10:56:14 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=8C=97=E8=B4=A2=E5=8F=AA?= =?UTF-8?q?=E4=BC=A0=E4=B8=80=E6=9D=A1=E6=95=B0=E6=8D=AEBUG=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lease/Flow/Fund/ActualPayment/BCpayInfoLog.jsp | 3 ++- .../Flow/Fund/ActualPayment/BCpayInfoLogInfo.jsp | 4 +--- src_cmb/paymentInfoUpdate/UpdatePaymentInfo.java | 12 ++++++++++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLog.jsp b/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLog.jsp index 573e3e21f..37493e65b 100644 --- a/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLog.jsp +++ b/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLog.jsp @@ -43,9 +43,10 @@ } var Ids = ""; for(var i in rows){ - Ids += ","+getItemValue(0,rows[i],"ID"); + Ids += "@"+getItemValue(0,rows[i],"ID"); } Ids = Ids.substring(1); + debugger; var result = RunJavaMethodTrans("paymentInfoUpdate.UpdatePaymentInfo","requestAndAction","Ids="+Ids); if("SUCCESS" == result){ AsDebug.showMessage("提示","操作成功!","","",true); diff --git a/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLogInfo.jsp b/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLogInfo.jsp index c8a9a2473..27da3568e 100644 --- a/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLogInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/BCpayInfoLogInfo.jsp @@ -10,15 +10,13 @@ String sTempletNo = "BC_PAY_INFO_LOG_INFO";//--模板号-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); - //doTemp.setColTips("", "测试"); ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); dwTemp.Style = "2";//freeform - //dwTemp.ReadOnly = "-2";//只读模式 dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo")); String sButtons[][] = { {"true","All","Button","保存","保存所有修改","as_save(0,'returnList()')","","","",""}, - // {"true","All","Button","返回","返回列表","returnList()","","","",""} + {"true","All","Button","返回","返回列表","returnList()","","","",""} // {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""} }; sButtonPosition = "south"; diff --git a/src_cmb/paymentInfoUpdate/UpdatePaymentInfo.java b/src_cmb/paymentInfoUpdate/UpdatePaymentInfo.java index bf9ba426f..a5246cd5a 100644 --- a/src_cmb/paymentInfoUpdate/UpdatePaymentInfo.java +++ b/src_cmb/paymentInfoUpdate/UpdatePaymentInfo.java @@ -118,10 +118,18 @@ public class UpdatePaymentInfo { } public String requestAndAction (JBOTransaction tx) throws Exception{ Conn conn = new Conn(tx); - String sql = "select project_no,customername,certid,fact_money from BC_PAY_INFO_LOG where ID in(?)"; + String sql = "select project_no,customername,certid,fact_money from BC_PAY_INFO_LOG where ID =?"; List> requests = null; + String [] IdsArray = Ids.split("@"); try { - requests = conn.executeQuery(sql, Ids); + for(int i=0;i> request = conn.executeQuery(sql, IdsArray[i]); + if(requests==null){ + requests=request; + }else{ + requests.addAll(request); + } + } } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace();