Commit 6cda077b authored by ssalve's avatar ssalve

Sarita : Done changes to resolve date parsing error on 01 AUG 2019

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204513 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7b30f186
......@@ -83,7 +83,6 @@ public class LveEncArrCanc extends ActionHandlerEJB implements LveEncArrCancLoc
}
catch(Exception e )
{
System.out.println("Exception from actionHandler method --["+ e.getMessage() +"]");
e.printStackTrace();
throw new ITMException(e);
......@@ -243,11 +242,13 @@ public class LveEncArrCanc extends ActionHandlerEJB implements LveEncArrCancLoc
tranDateStr = genericUtility.getValidDateString(tranDate, genericUtility.getDBDateTimeFormat());
System.out.println("tranDateStr---["+tranDateStr+"]");
//Commented by sarita as data is coming in DBDateTimeFormat format so getting error on again formatting 30 JULY 2019 [START]
//ADDED BY AMMIT SHRIVASTAVA ON 1/14/2019[START]
lveDateStrTimestamp = Timestamp.valueOf(genericUtility.getValidDateTimeString(tranDateStr, genericUtility.getApplDateFormat()
/* lveDateStrTimestamp = Timestamp.valueOf(genericUtility.getValidDateTimeString(tranDateStr, genericUtility.getApplDateFormat()
,genericUtility.getDBDateFormat()));
System.out.println("@Amit @ tranDateTimestamp::::"+lveDateStrTimestamp);
System.out.println("@Amit @ tranDateTimestamp::::"+lveDateStrTimestamp);*/
//ADDED BY AMMIT SHRIVASTAVA ON 1/14/2019[END.]
//Commented by sarita as data is coming in DBDateTimeFormat format so getting error on again formatting 30 JULY 2019 [END]
}
//Modified by Anjali R. on [19/09/2018][Start]
/*if(status != null && status.trim().length() > 0 || !status.equalsIgnoreCase("N"))
......@@ -308,8 +309,11 @@ public class LveEncArrCanc extends ActionHandlerEJB implements LveEncArrCancLoc
pstmt.setString(3, chgUser);
//ADDED BY AMIT SHRIVASTAVA ON 1/14/2019 [START]
//pstmt.setString(4, tranDateStr);
pstmt.setTimestamp(4, lveDateStrTimestamp);
//Modified By sarita on 30 JULY 2019 [START]
//pstmt.setTimestamp(4, lveDateStrTimestamp);
pstmt.setTimestamp(4, tranDate);
//ADDED BY AMIT SHRIVASTAVA ON 1/14/2019 [END.]
//Modified By sarita on 30 JULY 2019 [END]
pstmt.setString(5, "CANC_LVE_ENC_ARR");
rs = pstmt.executeQuery();
if(rs.next())
......
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