Commit ffc5823c authored by akhokar's avatar akhokar

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198973 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 421fca96
......@@ -29,7 +29,6 @@ import org.w3c.dom.Document;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
import ibase.webitm.bean.adm.LogWriterDatabase;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.sys.UtilMethods;
......@@ -37,13 +36,6 @@ import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.rmi.RemoteException;
// Modified by Vishal Thakur on 04-07-2017 [Migration from PB to JAVA for Employee Leave][END]
/*
Sudhir
*/
......@@ -2941,11 +2933,26 @@ public class AdmCommon
}
System.out.println("lsStatusDet:::: " + lsStatusDet);
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
todayDate = sdf.format(new java.util.Date());
ldtCurrent = Timestamp.valueOf(genericUtility.getValidDateString(todayDate,
genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("ldtCurrent:::: " + ldtCurrent);
// Modified by Azhar to print sysdate with time in background_status table field STATUS_TIME on 29-03-2019 [Start]
Timestamp timestamp = null;
timestamp = new Timestamp(System.currentTimeMillis());
sdf = new SimpleDateFormat(genericUtility.getApplDateTimeFormat());
String val = sdf.format(timestamp);
System.out.println("val--["+val+"]");
val = genericUtility.getValidDateTimeString(val, genericUtility.getApplDateTimeFormat(), genericUtility.getDBDateTimeFormat());
System.out.println("val--["+val+"]");
ldtCurrent = Timestamp.valueOf(val);
// Modified by Azhar to print sysdate with time in background_status table field STATUS_TIME on 29-03-2019 [End]
//LocalDateTime now = LocalDateTime.now();
//todayDate = sdf.format(sdf);
//ldtCurrent= utilMethod.dateTime(utilMethod.todaySqlDate(),utilMethod.now());
//System.out.println("todayDate==>" + todayDate);
//ldtCurrent = Timestamp.valueOf(genericUtility.getValidDateString(todayDate,
//genericUtility.getApplDateTimeFormat(), genericUtility.getDBDateTimeFormat()));
System.out.println("ldtCurrent==>" + ldtCurrent);
sql = "insert into background_status(job_id , obj_name , line_no , status_det , status_time, status_type)" +
"values (? , ? , ? , ? , ?, ? )";
......
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