Commit d7009f37 authored by kdabholkar's avatar kdabholkar

changes in gstGsttableData.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177460 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ba3769e3
......@@ -121,13 +121,13 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
GstHrdDetData gstHrdDetData = new GstHrdDetData();
GstHeaderData gstHeaderData = null;
GstDetailData gstDetailData = null;
String retString="";
String retString="",newType="";
boolean isError = false;
DistCommon distCommon = new DistCommon();
//String GST_TABLE_URL="http://192.168.0.225:9090/ibase/rest/service/insertdata";
String GST_TABLE_URL="";
int connectionTimeout=0,socketTimeout=0,totalNoRecords=0,
multipleOfRecords=0,noOfIteration=0,reminder = 0, noOfSlots = 10, newType=0;
multipleOfRecords=0,noOfIteration=0,reminder = 0, noOfSlots = 10;
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
ResultSet rs = null, rs1 = null;
......@@ -188,11 +188,11 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
pstmt.setString(2, newPeriod);
if ("S".equalsIgnoreCase(type))
{
pstmt.setInt(3, 1);
pstmt.setString(3, "1");
}
else
{
pstmt.setInt(3, 2);
pstmt.setString(3, "2");
}
System.out.println("query::"+pstmt);
rs = pstmt.executeQuery();
......@@ -267,7 +267,7 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ))
{
sql = " SELECT * FROM GST_DATA_HDR WHERE SUBMIT_STATUS = 'P' and site_code = ? and PRD_CODE= ? AND REC_TYPE = ? and FETCH FIRST ? ROWS ONLY<= ? ";
sql = " SELECT * FROM GST_DATA_HDR WHERE SUBMIT_STATUS = 'P' and site_code = ? and PRD_CODE= ? AND REC_TYPE = ? and FETCH FIRST ? ROWS ONLY ";
}
else
{
......@@ -278,11 +278,11 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
pstmt.setString(2, newPeriod);*/
if ("S".equalsIgnoreCase(type))
{
newType= 1;
newType= "1";
}
else
{
newType= 2;
newType= "2";
}
//pstmt.setInt(4, noOfSlots);
......@@ -293,7 +293,7 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, sitecode);
pstmt.setString(2, newPeriod);
pstmt.setInt(3, newType);
pstmt.setString(3, newType);
pstmt.setInt(4, noOfSlots);
rs = pstmt.executeQuery();
......
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