From f01f200fe9b96787cb8185c386182010cc9bd5cc Mon Sep 17 00:00:00 2001 From: liuzhao Date: Thu, 19 Jul 2018 12:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=BD=A6=E7=94=B3=E8=AF=B7=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=9D=A1=E4=BB=B6=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tenwa/apzl/carreclaim/BackReclaim.java | 37 +++++++++++++++++++ .../tenwa/apzl/carreclaim/OutDateReclaim.java | 37 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 src_tenwa/com/tenwa/apzl/carreclaim/BackReclaim.java create mode 100644 src_tenwa/com/tenwa/apzl/carreclaim/OutDateReclaim.java diff --git a/src_tenwa/com/tenwa/apzl/carreclaim/BackReclaim.java b/src_tenwa/com/tenwa/apzl/carreclaim/BackReclaim.java new file mode 100644 index 000000000..ebdfe5672 --- /dev/null +++ b/src_tenwa/com/tenwa/apzl/carreclaim/BackReclaim.java @@ -0,0 +1,37 @@ +package com.tenwa.apzl.carreclaim; + + +import jbo.com.tenwa.lease.comm.CAR_RECLAIM_TEMP; + +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; + +public class BackReclaim extends BaseBussiness { + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowUnid=this.getAttribute("ObjectNo").toString(); + String ContractId = this.getAttribute("ContractId").toString(); + + BizObjectManager lecbom = JBOFactory.getBizObjectManager(CAR_RECLAIM_TEMP.CLASS_NAME, Sqlca); + BizObject condition = lecbom.createQuery("FlowUnid=:flowunid").setParameter("flowunid",flowUnid).getSingleResult(false); + String sMessage=""; + String reclaimType = ""; + if(null!=condition){ + reclaimType=condition.getAttribute("reclaim_type").toString(); + } + if(reclaimType!=null&&reclaimType.equals("back_reclaim")){//走第四个节点 + sMessage="true"; + }else { + sMessage="false"; + } + + + + return sMessage; + } +} \ No newline at end of file diff --git a/src_tenwa/com/tenwa/apzl/carreclaim/OutDateReclaim.java b/src_tenwa/com/tenwa/apzl/carreclaim/OutDateReclaim.java new file mode 100644 index 000000000..bf815f4e3 --- /dev/null +++ b/src_tenwa/com/tenwa/apzl/carreclaim/OutDateReclaim.java @@ -0,0 +1,37 @@ +package com.tenwa.apzl.carreclaim; + + +import jbo.com.tenwa.lease.comm.CAR_RECLAIM_TEMP; + +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; + +public class OutDateReclaim extends BaseBussiness { + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowUnid=this.getAttribute("ObjectNo").toString(); + String ContractId = this.getAttribute("ContractId").toString(); + + BizObjectManager lecbom = JBOFactory.getBizObjectManager(CAR_RECLAIM_TEMP.CLASS_NAME, Sqlca); + BizObject condition = lecbom.createQuery("FlowUnid=:flowunid").setParameter("flowunid",flowUnid).getSingleResult(false); + String sMessage=""; + String reclaimType = ""; + if(null!=condition){ + reclaimType=condition.getAttribute("reclaim_type").toString(); + } + if(reclaimType!=null&&reclaimType.equals("over_reclaim")){//走第四个节点 + sMessage="true"; + }else { + sMessage="false"; + } + + + + return sMessage; + } +} \ No newline at end of file