apzl_leasing/src_tenwa/com/tenwa/flow/fund/flowpayment/CopyFundPlanToTemp.java
2018-06-03 22:26:41 +08:00

32 lines
1.1 KiB
Java

package com.tenwa.flow.fund.flowpayment;
import java.util.HashMap;
import java.util.Map;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
/**
* 拷贝资金计划数据到临时表
* @author zhulh
*
*/
public class CopyFundPlanToTemp extends BaseBussiness{
public Object run(Transaction Sqlca) throws Exception{
this.initBussinessParam(Sqlca.getTransaction());
String sFlowUnid = (String)this.getAttribute("ObjectNo");
String contract_id = (String)this.getAttribute("ContractId");
Map<String,String> fromCondtion = new HashMap<String, String>();
fromCondtion.put("contract_id", contract_id);
Map<String,String> otherProperty = new HashMap<String,String>();
otherProperty.put("FlowUnid", sFlowUnid);
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
service.copyOrLoadFundPlan(Sqlca, fromCondtion, null , otherProperty, ServiceOperatorEnum.FormalToTemp,null);
String sMessage="true";
return sMessage;
}
}