Commit d4ac7be9 authored by kgharal's avatar kgharal

Sales Return Auto Confirmation via Scheduler


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93401 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c700be89
...@@ -146,17 +146,16 @@ public class SalesReturnAutoConf implements Schedule ...@@ -146,17 +146,16 @@ public class SalesReturnAutoConf implements Schedule
compName = rs.getString("COMP_NAME"); compName = rs.getString("COMP_NAME");
} }
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null) if (pstmt != null)
{ {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
if (rs != null)
{
rs.close();
rs = null;
}
sql = "SELECT SERVICE_URI FROM SYSTEM_EVENT_SERVICES WHERE SERVICE_CODE = ? "; sql = "SELECT SERVICE_URI FROM SYSTEM_EVENT_SERVICES WHERE SERVICE_CODE = ? ";
...@@ -168,18 +167,16 @@ public class SalesReturnAutoConf implements Schedule ...@@ -168,18 +167,16 @@ public class SalesReturnAutoConf implements Schedule
serviceURI = rs.getString("SERVICE_URI"); serviceURI = rs.getString("SERVICE_URI");
} }
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null) if (pstmt != null)
{ {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
if (rs != null)
{
rs.close();
rs = null;
}
System.out.println("serviceURI = "+serviceURI+" compName = "+compName); System.out.println("serviceURI = "+serviceURI+" compName = "+compName);
Service service = new Service(); Service service = new Service();
......
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