From 93677bb973f99e722ed330767460d42868a3b299 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 8 Aug 2018 19:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=88=B3=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=B9=B4=E6=9C=88=E6=97=A5=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../handler/DisributorAccountLogHandlerDelete.java | 6 ++---- .../handler/DistributorAccountLogHandler.java | 14 +++++--------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/calc/com/tenwa/reckon/handler/DisributorAccountLogHandlerDelete.java b/calc/com/tenwa/reckon/handler/DisributorAccountLogHandlerDelete.java index d671b9584..6c1a5a88f 100644 --- a/calc/com/tenwa/reckon/handler/DisributorAccountLogHandlerDelete.java +++ b/calc/com/tenwa/reckon/handler/DisributorAccountLogHandlerDelete.java @@ -1,10 +1,7 @@ package com.tenwa.reckon.handler; -import java.util.ArrayList; import java.util.Date; -import java.util.List; -import oracle.net.aso.e; import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_LOG; import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_TEMP; @@ -14,6 +11,7 @@ import com.amarsoft.are.jbo.BizObjectQuery; import com.amarsoft.are.jbo.JBOException; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOTransaction; +import com.amarsoft.are.util.StringFunction; import com.amarsoft.awe.dw.handler.impl.CommonHandler; public class DisributorAccountLogHandlerDelete extends CommonHandler{ @@ -65,7 +63,7 @@ public class DisributorAccountLogHandlerDelete extends CommonHandler{ DistributorAccountLogEntity daLogEntity = new DistributorAccountLogEntity(); //DISTRIBUTOR_ACCOUNT_TEMP daLogEntity.setActionType("D"); - daLogEntity.setTimestamp(String.valueOf(new Date().getTime())); + daLogEntity.setTimestamp(StringFunction.getTodayNow()); distributorLogUtilDelete(tx,daLogEntity, bo.getAttribute("id").getString()); /*System.err.println("ID:"+bo.getAttribute("ID").getString()); diff --git a/calc/com/tenwa/reckon/handler/DistributorAccountLogHandler.java b/calc/com/tenwa/reckon/handler/DistributorAccountLogHandler.java index ae9eba1ec..d9612de67 100644 --- a/calc/com/tenwa/reckon/handler/DistributorAccountLogHandler.java +++ b/calc/com/tenwa/reckon/handler/DistributorAccountLogHandler.java @@ -1,19 +1,15 @@ package com.tenwa.reckon.handler; -import java.util.Date; import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_LOG; -import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_TEMP; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; -import com.amarsoft.are.jbo.BizObjectQuery; import com.amarsoft.are.jbo.JBOException; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOTransaction; -import com.amarsoft.awe.dw.handler.BusinessProcessData; +import com.amarsoft.are.util.StringFunction; import com.amarsoft.awe.dw.handler.impl.CommonHandler; -import com.amarsoft.biz.workflow.graph.model.BusinessProcess; public class DistributorAccountLogHandler extends CommonHandler{ @@ -44,7 +40,7 @@ public class DistributorAccountLogHandler extends CommonHandler{ DistributorAccountLogEntity daLogEntity = new DistributorAccountLogEntity(); daLogEntity.setDistributorId(bo.getAttribute("DISTRIBUTOR_ID").getString()); daLogEntity.setActionType("A"); - daLogEntity.setTimestamp(String.valueOf(new Date().getTime())); + daLogEntity.setTimestamp(StringFunction.getTodayNow()); daLogEntity.setAccNumber(bo.getAttribute("ACC_NUMBER").getString()); daLogEntity.setAccount(bo.getAttribute("ACCOUNT").getString()); daLogEntity.setIsMain(bo.getAttribute("IS_MAIN").getString()); @@ -61,7 +57,7 @@ public class DistributorAccountLogHandler extends CommonHandler{ DistributorAccountLogEntity daLogEntity = new DistributorAccountLogEntity(); daLogEntity.setDistributorId(bo.getAttribute("DISTRIBUTOR_ID").getString()); daLogEntity.setActionType("A"); - daLogEntity.setTimestamp(String.valueOf(new Date().getTime())); + daLogEntity.setTimestamp(StringFunction.getTodayNow()); daLogEntity.setAccNumber(bo.getAttribute("ACC_NUMBER").getString()); daLogEntity.setAccount(bo.getAttribute("ACCOUNT").getString()); daLogEntity.setIsMain(bo.getAttribute("IS_MAIN").getString()); @@ -78,7 +74,7 @@ public class DistributorAccountLogHandler extends CommonHandler{ DistributorAccountLogEntity daLogEntity = new DistributorAccountLogEntity(); daLogEntity.setDistributorId(bo.getAttribute("DISTRIBUTOR_ID").getString()); daLogEntity.setActionType("U"); - daLogEntity.setTimestamp(String.valueOf(new Date().getTime())); + daLogEntity.setTimestamp(StringFunction.getTodayNow()); daLogEntity.setAccNumber(bo.getAttribute("ACC_NUMBER").getString()); daLogEntity.setAccount(bo.getAttribute("ACCOUNT").getString()); daLogEntity.setIsMain(bo.getAttribute("IS_MAIN").getString()); @@ -95,7 +91,7 @@ public class DistributorAccountLogHandler extends CommonHandler{ DistributorAccountLogEntity daLogEntity = new DistributorAccountLogEntity(); daLogEntity.setDistributorId(bo.getAttribute("DISTRIBUTOR_ID").getString()); daLogEntity.setActionType("U"); - daLogEntity.setTimestamp(String.valueOf(new Date().getTime())); + daLogEntity.setTimestamp(StringFunction.getTodayNow()); daLogEntity.setAccNumber(bo.getAttribute("ACC_NUMBER").getString()); daLogEntity.setAccount(bo.getAttribute("ACCOUNT").getString()); daLogEntity.setIsMain(bo.getAttribute("IS_MAIN").getString());