时间戳修改为年月日格式
This commit is contained in:
parent
45c7c15a5c
commit
93677bb973
@ -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());
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user