Commit 97144c10 authored by ngadkari's avatar ngadkari

changes in sql

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203207 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cf18288f
...@@ -898,10 +898,10 @@ conn = getConnection(); ...@@ -898,10 +898,10 @@ conn = getConnection();
{ {
tranDate = dateFormat2.parse(this.genericUtility.getColumnValue("tran_date", dom)); tranDate = dateFormat2.parse(this.genericUtility.getColumnValue("tran_date", dom));
bankCode = this.genericUtility.getColumnValue("bank_code", dom); bankCode = this.genericUtility.getColumnValue("bank_code", dom);
sql = "select count(*) from advbking where confirmed = 'Y' and bal_amt > 0 and (? between to_char(eff_date,'yyyy-mm-dd') and to_char(valid_upto,'yyyy-mm-dd'))and bank_code = ? tran_id = ? and status = 'A' "; sql = "select count(*) from advbking where confirmed = 'Y' and bal_amt > 0 and (? between to_char(eff_date,'yyyy-mm-dd') and to_char(valid_upto,'yyyy-mm-dd'))and bank_code = ? and tran_id = ? and status = 'A' ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, bankCode); pstmt.setString(1, tranDate.toString());
pstmt.setString(2, tranDate.toString()); pstmt.setString(2, bankCode);
pstmt.setString(3, tranIdAdvbking); pstmt.setString(3, tranIdAdvbking);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
......
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