租金计划从正式表到临时表

This commit is contained in:
tangft 2019-01-18 10:27:08 +08:00
parent 8c0e2a363e
commit d34510fd95

View File

@ -0,0 +1,29 @@
package com.tenwa.lease.flow.contract.onhirechange;
import java.util.HashMap;
import java.util.Map;
import jbo.app.tenwa.calc.LC_RENT_PLAN;
import jbo.app.tenwa.calc.LC_RENT_PLAN_HIS;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class LBRentPlanFormalToHisBusiness extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowUnid=this.getAttribute("ObjectNo").toString();
Map<String,String> fromCondtion=new HashMap<String,String>();
fromCondtion.putIfAbsent("CONTRACT_ID", this.getAttribute("ContractId").toString());
Map<String,String> otherProperty=new HashMap<String,String>();
otherProperty.put("FLOWUNID", flowUnid);
DataOperatorUtil.copyJBOSet(LC_RENT_PLAN.CLASS_NAME, fromCondtion, LC_RENT_PLAN_HIS.CLASS_NAME,null, otherProperty, null, Sqlca);
String sMessage="true";
return sMessage;
}
}