Commit 55717460 authored by ssalve's avatar ssalve

Sarita : Done changes to set current date with time[00.00.00.0] instead SYSDATE on 12 JUN 18

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@186391 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 53b09c79
......@@ -253,6 +253,13 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
System.out.println("@V@ loginEmpCode :- ["+loginEmpCode+"]");
//Added by sarita to get Current Date with time[00:00:00.0] on 12 JUN 18 [START]
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat());
java.util.Date currentDate = new java.util.Date();
Timestamp newsysDate = java.sql.Timestamp.valueOf(sdf1.format(currentDate) + " 00:00:00.0");
System.out.println("newsysDate is : ["+newsysDate+"]");
//Added by sarita to get Current Date with time[00:00:00.0] on 12 JUN 18 [END]
stkUpdMap = new HashMap();
System.out.println("Getting Connection["+conn+"]");
......@@ -407,7 +414,6 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
}
//Ended by Varsha V and added below code for checking msgType
}
sql="select (case when ledg_post_conf is null then 'N' else ledg_post_conf end) as lsLedgPostConf from transetup where tran_window = 'w_dist_receipt'";
pstmt=conn.prepareStatement(sql);
rs=pstmt.executeQuery();
......@@ -420,9 +426,14 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
System.out.println("@V@ lsLedgPostConf 390:- ["+lsLedgPostConf+"]");
if("Y".equalsIgnoreCase(lsLedgPostConf))
{
sql="update distord_rcp set tran_date = SYSDATE where tran_id =?";
//commented and added by sarita to set tran_date as current date with time[00:00:00.0] on 12 JUN 18 [START]
//sql="update distord_rcp set tran_date = SYSDATE where tran_id =?";
sql="update distord_rcp set tran_date = ? where tran_id =?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, tranID);
pstmt.setTimestamp(1, newsysDate);
pstmt.setString(2, tranID);
//pstmt.setString(1, tranID);
//commented and added by sarita to set tran_date as current date with time[00:00:00.0] on 12 JUN 18 [END]
llCnt=pstmt.executeUpdate();
pstmt.close();pstmt=null;
System.out.println("@V@ Update cnt :- ["+llCnt+"]");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment