业务变更租金测算

This commit is contained in:
lixuebo 2019-09-05 16:12:14 +08:00
parent d3f5740708
commit 920c4ce0ff

View File

@ -0,0 +1,42 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.Map;
import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP;
import com.amarsoft.app.util.ProductParamUtil;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.reckon.executor.CreateTransactionExecutor;
/**
* 接口平台业务变更流程租金测算
*/
public class PlatformBusinessChangeMeasurement extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String projectId = this.getAttribute("ProjectId").toString();
String applicationNo = Sqlca.getString("SELECT APPLICATION_NO FROM lb_project_info WHERE id='"+projectId+"'");
if(applicationNo==null||"".equals(applicationNo)||"null".equals(applicationNo))
return "true";
String flowunid = this.getAttribute("ObjectNo").toString();
String productId = this.getAttribute( "ProductId" ).toString();
String planNumber = Sqlca.getString("SELECT PROJECT_PLAN_NUMBER FROM lc_calc_condition_temp WHERE flowunid ='"+flowunid+"' LIMIT 1");
String calType = "proj_process";
CreateTransactionExecutor cte = new CreateTransactionExecutor();
cte.setCalType(calType);
cte.setFlowunid(flowunid);
cte.setPlannumber(planNumber);
cte.setProductId(productId);
System.out.println("===========================接口平台自动测算开始===============================");
cte.runTrans(Sqlca);
System.out.println("===========================接口平台自动测算结束===============================");
return "true";
}
}