Commit 1917f8ad authored by manohar's avatar manohar

Bug fixing site_code__from in select and while getting value site_code used so...

Bug fixing site_code__from in select and while getting value site_code used so invalid column name exception - corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104889 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 667cb71b
...@@ -101,14 +101,14 @@ conn = getConnection(); ...@@ -101,14 +101,14 @@ conn = getConnection();
sql = "select confirmed ,site_code__from,chg_user from pay_ibca where tran_id = ?"; sql = "select confirmed ,site_code__from as site_code,chg_user from pay_ibca where tran_id = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId); pstmt.setString(1,tranId);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
confirm = rs.getString("confirmed") == null ?"N":rs.getString("confirmed"); confirm = rs.getString("confirmed") == null ?"N":rs.getString("confirmed");
siteCode = rs.getString("site_code") == null ?" ":rs.getString("site_code__from"); siteCode = rs.getString("site_code") == null ?" ":rs.getString("site_code");
chgUser = rs.getString("chg_user") == null ?" ":rs.getString("chg_user"); chgUser = rs.getString("chg_user") == null ?" ":rs.getString("chg_user");
} }
rs.close(); rs.close();
......
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