apzl_leasing/calc/com/tenwa/flow/CopyDormantRentTempToFormal.java
2022-03-30 13:45:51 +08:00

38 lines
1.4 KiB
Java

package com.tenwa.flow;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
import jbo.app.tenwa.calc.LC_CALC_CONDITION;
import jbo.app.tenwa.calc.LC_CALC_CONDITION_HIS;
import jbo.app.tenwa.calc.LC_DORMANT_RENT_ADJUST;
import jbo.app.tenwa.calc.LC_DORMANT_RENT_ADJUST_TEMP;
import java.util.HashMap;
import java.util.Map;
public class CopyDormantRentTempToFormal extends BaseBussiness{
/**
* ×â½ðÐÝÃßÁÙʱ¿½Õýʽ
* @param Sqlca
* @return
* @throws Exception
*/
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
Map<String,String>fromCondtion=new HashMap<String, String>();
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
Map<String,String>fromCondtion2=new HashMap<String, String>();
fromCondtion2.put("contract_id",this.getAttribute("ContractId").toString());
Map<String,String>otherProperty2=new HashMap<String, String>();
otherProperty2.put("flowunid",this.getAttribute("FlowUnid").toString());
DataOperatorUtil.copySingleJBO(LC_DORMANT_RENT_ADJUST_TEMP.CLASS_NAME, fromCondtion, LC_DORMANT_RENT_ADJUST.CLASS_NAME, null, null, Sqlca);
DataOperatorUtil.copySingleJBO(LC_CALC_CONDITION.CLASS_NAME, fromCondtion2, LC_CALC_CONDITION_HIS.CLASS_NAME, null, otherProperty2, Sqlca);
String sMessage="true";
return sMessage;
}
}