30 lines
1.4 KiB
Java
30 lines
1.4 KiB
Java
package com.tenwa.lease.flow.fivegradeclassify;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import com.amarsoft.app.lc.workflow.action.GetFlowAction;
|
|
import com.amarsoft.awe.util.Transaction;
|
|
import com.tenwa.comm.util.date.DateAssistant;
|
|
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;
|
|
|
|
public class LBFiveGradeClassifyInfoFromalToTempBusiness extends BaseBussiness{
|
|
public Object run(Transaction Sqlca) throws Exception{
|
|
this.initBussinessParam(Sqlca);
|
|
Map<String,String> flowParam = GetFlowAction.getFlowParamByFlowUnidAndTransaction(this.getAttribute("FlowUnid").toString(), Sqlca);
|
|
Map<String,String>fromCondtion=new HashMap<String,String>();
|
|
fromCondtion.put("CONTRACT_ID",this.getAttribute("ContractId").toString());
|
|
fromCondtion.put("PAYMENT_NUMBER",flowParam.get("PaymentNumber"));
|
|
Map<String,String>otherProperty=new HashMap<String,String>();
|
|
otherProperty.put("FLOWUNID",this.getAttribute("FlowUnid").toString());
|
|
otherProperty.put("FIVE_GRADE_DATE",DateAssistant.getToday());
|
|
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
|
|
service.copyOrLoadFiveGradeClassify(Sqlca, fromCondtion, null,otherProperty, ServiceOperatorEnum.FormalToTemp);
|
|
String sMessage="true";
|
|
return sMessage;
|
|
}
|
|
}
|