Commit 12398cce authored by steurwadkar's avatar steurwadkar

Changes made to handle prd_code from fr_date and to_date issue

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@179390 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e0bf2669
......@@ -292,7 +292,7 @@ public class GstClearDataIC extends ValidatorEJB implements GstClearDataICRemote
}*/
sql = "SELECT TO_CHAR(TO_DATE(CODE,'yyyymm'),'mmyyyy') AS PRD_CODE FROM PERIOD WHERE ? BETWEEN FR_DATE AND TO_DATE";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, java.sql.Timestamp.valueOf(genericUtility.getValidDateString(new Date(), genericUtility.getDBDateTimeFormat())));
pstmt.setTimestamp(1, java.sql.Timestamp.valueOf(genericUtility.getValidDateString(new Date(), genericUtility.getDBDateFormat()) + " 00:00:00.0"));
rs = pstmt.executeQuery();
......@@ -336,8 +336,14 @@ public class GstClearDataIC extends ValidatorEJB implements GstClearDataICRemote
}
}
if(fromDate != null)
{
fromDateStr = sdf.format(fromDate);
}
if(toDate != null)
{
toDateStr = sdf.format(toDate);
}
System.out.println("fromDateStr ["+fromDateStr+"] toDateStr ["+toDateStr+"]");
......
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