Commit f166f9bf authored by kdabholkar's avatar kdabholkar

to commit changes of updation of Sync operation

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@171489 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 59ad7fc8
......@@ -35,7 +35,7 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
{
@Override
public String actionHandler(String tran_id , String xtraParams , String forced_flag) throws RemoteException,ITMException
public String actionHandler(String tran_id , String xtraParams ,String sitecode ,String forced_flag) throws RemoteException,ITMException
{
System.out.println("Json for gst table data transfer called");
Document dom = null;
......@@ -52,7 +52,7 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
}
*/
System.out.println("TRAN id:"+tran_id+":");
resString = getGstTableData(tran_id,xtraParams,forced_flag);
resString = getGstTableData(tran_id,xtraParams,sitecode,forced_flag);
}catch(Exception e)
{
......@@ -65,13 +65,13 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
}
//Changed by wasim on to overload getGstTableData with connection parameter [START]
public String getGstTableData(String tran_id, String xtraParams , String forced_flag) throws Exception
public String getGstTableData(String tran_id, String xtraParams ,String sitecode,String forced_flag) throws Exception
{
String retString = "";
Connection conn = null;
try
{
retString = getGstTableData(tran_id, xtraParams,forced_flag, conn);
retString = getGstTableData(tran_id, xtraParams,forced_flag,sitecode, conn);
}
catch(Exception e)
{
......@@ -85,9 +85,10 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
//Changed by wasim on to overload getGstTableData with connection parameter [END]
//public String getGstTableData(String tran_id, String xtraParams , String forced_flag) throws RemoteException,ITMException
public String getGstTableData(String tran_id, String xtraParams , String forced_flag,Connection conn) throws RemoteException,ITMException
public String getGstTableData(String tran_id, String xtraParams , String forced_flag,String sitecode, Connection conn) throws RemoteException,ITMException
{
System.out.println("Inside GetGstTableData");
System.out.println("Newsitecode::"+sitecode);
//Connection conn = null;
String sql,sql1,sql2;
......@@ -160,8 +161,10 @@ public class GetGstTableData extends ActionHandlerEJB implements GetGstTableData
}
//sql = "SELECT * FROM GST_DATA_HDR WHERE TRAN_ID IN ('0000000974','0000000989','0000001039')";
sql = " SELECT * FROM GST_DATA_HDR WHERE SUBMIT_STATUS = 'P' ";
//sql = " SELECT * FROM GST_DATA_HDR WHERE SUBMIT_STATUS = 'P' ";
sql = " SELECT * FROM GST_DATA_HDR WHERE SUBMIT_STATUS = 'P' and site_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, sitecode);
System.out.println("query::"+pstmt);
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