From 920c4ce0ff69becc8e540915a4393d0d99df62f4 Mon Sep 17 00:00:00 2001 From: lixuebo Date: Thu, 5 Sep 2019 16:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=8F=98=E6=9B=B4=E7=A7=9F?= =?UTF-8?q?=E9=87=91=E6=B5=8B=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlatformBusinessChangeMeasurement.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src_tenwa/com/tenwa/lease/flow/project/commbusiness/PlatformBusinessChangeMeasurement.java 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"; + } +}