Commit b176ec9b authored by cpatil's avatar cpatil

modify by manoj in sun office


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99867 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dcf5f4e5
......@@ -45,6 +45,9 @@ public class AutoFundTrfSch implements Schedule
PreparedStatement pstmt = null;
ResultSet rs = null;
PreparedStatement pstmt1 = null;
ResultSet rs1 = null;
String sql="";
String siteCodes[] = null;
String tranId="";
......@@ -207,18 +210,14 @@ public class AutoFundTrfSch implements Schedule
System.out.println(">>>siteCodeFrom:"+siteCodeFrom);
//logic for getting Site Code To
sql = "select bank_code from site where site_code= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCodeFrom);
rs=pstmt.executeQuery();
if(rs.next())
sql = "select site_bank.bank_code from site_bank , bank where site_bank.bank_code = bank.bank_code and site_bank.site_code = bank.site_code and site_bank.site_code = ? and bank.bank_type = 'CM'";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, siteCodeFrom);
rs1=pstmt1.executeQuery();
while(rs1.next())
{
bankCode= rs.getString("bank_code");
}
rs.close();
rs=null;
pstmt.close();
pstmt=null;
bankCode= rs1.getString(1);
System.out.println(">>bankCode:"+bankCode);
if(bankCode!=null && bankCode.trim().length() > 0)
......@@ -329,6 +328,11 @@ public class AutoFundTrfSch implements Schedule
}
}
}
}
rs1.close();
rs1=null;
pstmt1.close();
pstmt1=null;
} //end for loop siteCodes array
}
else
......
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