Commit 68ac0035 authored by manohar's avatar manohar

start_reco updated with milliseconds removed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91273 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 21c2d1d1
......@@ -9,7 +9,9 @@ import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import javax.ejb.Stateless; // added for ejb3
// 05/05/10 manoharan
import java.text.SimpleDateFormat;
// end 05/05/10 manoharan
@Stateless // added for ejb3
public class LoanscheduleStDedn extends ActionHandlerEJB implements LoanscheduleStDednLocal,LoanscheduleStDednRemote //SessionBean
......@@ -222,7 +224,14 @@ public class LoanscheduleStDedn extends ActionHandlerEJB implements Loanschedule
+"WHERE LOAN_NO = '"+loanNo+"'";
System.out.println("sql :"+sql);
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,new java.sql.Timestamp(frDate.getTime()));
// 05/05/10 manoharan milliseconds are set to be avoided
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getDBDateFormat());
String dateFromString = simpleDateFormat.format(frDate);
java.sql.Timestamp startRecoDate = java.sql.Timestamp.valueOf(dateFromString + " 00:00:00.000");
//pstmt.setTimestamp(1,new java.sql.Timestamp(frDate.getTime()));
pstmt.setTimestamp(1,startRecoDate);
// end 05/05/10 manoharan
updateCnt = pstmt.executeUpdate();
System.out.println("No. of Records updated ::"+updateCnt);
if (updateCnt > 0)
......@@ -461,4 +470,6 @@ public class LoanscheduleStDedn extends ActionHandlerEJB implements Loanschedule
}
return retDate;
}
}
\ No newline at end of file
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