diff --git a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJListHasInvoiced.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJListHasInvoiced.jsp index b76438e7b..411fdb79f 100644 --- a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJListHasInvoiced.jsp +++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJListHasInvoiced.jsp @@ -30,9 +30,11 @@ var fphm= getItemValue(0, getRow(), "fphm"); var param = "fpzl=00,fpdm="+fpdm+",fphm="+fphm; var res = AsControl.RunJavaMethod("com.tenwa.invoice.IAutokpDo", "invoice_pr", param); + alert(res); + reloadSelf(); } function deleteInvoice(){ - debugger; + var fpdm= getItemValue(0, getRow(), "fpdm"); if(typeof(fpdm)=="undefined" || fpdm.length==0 ){ alert("不能为空"); @@ -45,8 +47,11 @@ reloadSelf(); } function redInkInvoice(){ + debugger; var a = getItemValueArray(0,"contract_no"); - var ros = getCheckedRows(0); + //var ros = getCheckedRows(0); + var ros = []; + ros.push(getRow()); if(ros.length==0){ alert("请选择"); return ; @@ -75,6 +80,8 @@ param = "InvoiceParam="+param.replace(/,/g,'@')+",fpzl=00,fpzf=01"; // alert(param); var res = AsControl.RunJavaMethod("com.tenwa.invoice.IAutokpDo", "invoice", param); + alert(res); + reloadSelf(); } diff --git a/src_cmb/com/tenwa/invoice/IAutokpXML.java b/src_cmb/com/tenwa/invoice/IAutokpXML.java index 317e0997a..8830f694e 100644 --- a/src_cmb/com/tenwa/invoice/IAutokpXML.java +++ b/src_cmb/com/tenwa/invoice/IAutokpXML.java @@ -49,10 +49,8 @@ public class IAutokpXML { } public Map>> getRedbackInvoiceParam (String param){ JSONArray array =JSON.parseArray(param); - + System.out.println(array.toString()); Map>> map = new HashMap>>(); - List> ls = new ArrayList>(); - for(int i=0;i>()); } + map.get(mapKey).add(mapi); } return map; @@ -244,9 +239,9 @@ public class IAutokpXML { Element Ele_Data = rootEle.addElement("Data"); Element Ele_Order = Ele_Data.addElement("Order"); Element Ele_Head = Ele_Order.addElement("Head"); - Element Ele_FPZL = Ele_Order.addElement("FPZL"); - Element Ele_FPDM = Ele_Order.addElement("fpdm"); - Element Ele_FPHM = Ele_Order.addElement("fphm"); + Element Ele_FPZL = Ele_Head.addElement("FPZL"); + Element Ele_FPDM = Ele_Head.addElement("fpdm"); + Element Ele_FPHM = Ele_Head.addElement("fphm"); Ele_FPZL.setText(fpzl); Ele_FPDM.setText(fpdm); Ele_FPHM.setText(fphm); diff --git a/src_tenwa/com/tenwa/flow/fund/actualpayment/CustomerAccountCollectTypeModify.java b/src_tenwa/com/tenwa/flow/fund/actualpayment/CustomerAccountCollectTypeModify.java index 69326f48e..0b82639e4 100644 --- a/src_tenwa/com/tenwa/flow/fund/actualpayment/CustomerAccountCollectTypeModify.java +++ b/src_tenwa/com/tenwa/flow/fund/actualpayment/CustomerAccountCollectTypeModify.java @@ -45,7 +45,7 @@ public class CustomerAccountCollectTypeModify extends BaseBussiness{ String sFlowUnid = (String)this.getAttribute("ObjectNo"); BizObjectManager bomLFIT = JBOFactory.getBizObjectManager(LC_FUND_INCOME_TEMP.CLASS_NAME,tx); BizObjectManager bomCA = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME,tx); - List boLFITs = bomLFIT.createQuery("flowunid=:flowunid and pay_status<>'apply_return' and ebank_status='05'").setParameter("flowunid", sFlowUnid).getResultList(false); + List boLFITs = bomLFIT.createQuery("flowunid=:flowunid and pay_status<>'apply_return' ").setParameter("flowunid", sFlowUnid).getResultList(false); for(BizObject bo:boLFITs){ if(bo.getAttribute("CONTRACT_ID")!=null&&!"".equals(bo.getAttribute("CONTRACT_ID").toString())){ String contractId = bo.getAttribute("CONTRACT_ID").toString(); @@ -53,16 +53,14 @@ public class CustomerAccountCollectTypeModify extends BaseBussiness{ if(boCA.getAttribute("bank_code")!=null&&!"".equals(boCA.getAttribute("bank_code").toString())){ bomCA.createQuery("update O,jbo.loan.BANK_COLLECT_TYPE_CONFIG bctc set O.collect_type=bctc.collect_type where O.bank_code=bctc.bank_code and O.contract_id=:contract_id") .setParameter("contract_id", contractId).executeUpdate(); - } - //如果没有指定的方式,则默认是银联 - if(boCA.getAttribute("collect_type")==null||"".equals(boCA.getAttribute("collect_type").toString())){ + }else{ + //如果没有指定的方式,则默认是银联 boCA.setAttributeValue("collect_type", "YLcollect"); bomCA.saveObject(boCA); } } } - String sMessage="true"; return sMessage; }