diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/PlatformBusinessChangeMeasurement.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/PlatformBusinessChangeMeasurement.java new file mode 100644 index 000000000..54e3cb56c --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/PlatformBusinessChangeMeasurement.java @@ -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"; + } +}