银行扣款方式bug修改
This commit is contained in:
parent
7f0e293612
commit
18ed391d3a
@ -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();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@ -49,10 +49,8 @@ public class IAutokpXML {
|
||||
}
|
||||
public Map<String,List<Map<String,String>>> getRedbackInvoiceParam (String param){
|
||||
JSONArray array =JSON.parseArray(param);
|
||||
|
||||
System.out.println(array.toString());
|
||||
Map<String,List<Map<String,String>>> map = new HashMap<String,List<Map<String,String>>>();
|
||||
List<Map<String,String>> ls = new ArrayList<Map<String,String>>();
|
||||
|
||||
for(int i=0;i<array.size();i++){
|
||||
JSONObject obj= (JSONObject) array.get(i);
|
||||
String HCFPDM= obj.getString("HCFPDM");
|
||||
@ -75,13 +73,10 @@ public class IAutokpXML {
|
||||
mapi.put("HCFPDM",obj.getString("HCFPDM"));
|
||||
mapi.put("HCFPHM",obj.getString("HCFPHM"));
|
||||
mapi.put("HZTZDH",obj.getString("HZTZDH"));
|
||||
|
||||
if(map.containsKey(mapKey)){
|
||||
map.get(mapKey).add(mapi);
|
||||
}else{
|
||||
ls.add(mapi);
|
||||
map.put(mapKey, ls);
|
||||
if(!map.containsKey(mapKey)){
|
||||
map.put(mapKey,new ArrayList<Map<String,String>>());
|
||||
}
|
||||
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);
|
||||
|
||||
@ -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<BizObject> boLFITs = bomLFIT.createQuery("flowunid=:flowunid and pay_status<>'apply_return' and ebank_status='05'").setParameter("flowunid", sFlowUnid).getResultList(false);
|
||||
List<BizObject> 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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user