From 8152bd24aa4710038810e3ce9bc5692ed13e729a Mon Sep 17 00:00:00 2001 From: lixuebo Date: Tue, 13 Aug 2019 14:02:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=B9=B3=E5=8F=B0=E7=A7=9F?= =?UTF-8?q?=E9=87=91=E6=B5=8B=E7=AE=97=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commbusiness/HelpToBorrowCalculate.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src_tenwa/com/tenwa/lease/flow/project/commbusiness/HelpToBorrowCalculate.java diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/HelpToBorrowCalculate.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/HelpToBorrowCalculate.java new file mode 100644 index 000000000..0f6792792 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/HelpToBorrowCalculate.java @@ -0,0 +1,26 @@ +package com.tenwa.lease.flow.project.commbusiness; + +import com.amarsoft.awe.util.Transaction; +import com.tenwa.flow.baseBussion.BaseBussiness; +import com.tenwa.reckon.executor.CreateTransactionExecutor; +/** + * 接口平台租金测算 + */ +public class HelpToBorrowCalculate extends BaseBussiness { + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + if(this.getAttribute("serial")==null) + return "true"; + String serial = this.getAttribute("serial").toString(); + //租金测算 + CreateTransactionExecutor createTransactionExecutor = new CreateTransactionExecutor(); + createTransactionExecutor.setCalType("proj_process"); + createTransactionExecutor.setFlowunid(this.getAttribute("FlowUnid").toString()); + createTransactionExecutor.setPlannumber(this.getAttribute("FlowKey").toString()+"01"); + createTransactionExecutor.setProductId(this.getAttribute("ProductId").toString()); + createTransactionExecutor.run(); + return "true"; + } +}