Commit f01f1abb authored by ssalve's avatar ssalve

Sarita : Done changes to correct sql on 29/08/2019

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@206367 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a69f9a33
...@@ -169,7 +169,10 @@ public class FullFinalIC extends ValidatorEJB implements FullFinalICLocal,FullFi ...@@ -169,7 +169,10 @@ public class FullFinalIC extends ValidatorEJB implements FullFinalICLocal,FullFi
tranID = checkNull(genericUtility.getColumnValue("tran_id",dom)); tranID = checkNull(genericUtility.getColumnValue("tran_id",dom));
if(tranID == null || tranID.trim().length() == 0) if(tranID == null || tranID.trim().length() == 0)
{ {
sql = "select count(*) as cnt from fullfinal_hdr where emp_code ? and confirmed <> 'X'"; //Modified by sarita on 29/08/2019 [START]
//sql = "select count(*) as cnt from fullfinal_hdr where emp_code ? and confirmed <> 'X'";
sql = "select count(*) as cnt from fullfinal_hdr where emp_code = ? and confirmed <> 'X'";
//Modified by sarita on 29/08/2019 [END]
pstmt1 = conn.prepareStatement(sql); pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1,empCode); pstmt1.setString(1,empCode);
rs1 = pstmt1.executeQuery(); rs1 = pstmt1.executeQuery();
...@@ -197,7 +200,8 @@ public class FullFinalIC extends ValidatorEJB implements FullFinalICLocal,FullFi ...@@ -197,7 +200,8 @@ public class FullFinalIC extends ValidatorEJB implements FullFinalICLocal,FullFi
} }
else else
{ {
sql = "select count(*) as cnt from fullfinal_hdr where emp_code ? and tran_id <> ? and confirmed <> 'X'"; //sql = "select count(*) as cnt from fullfinal_hdr where emp_code ? and tran_id <> ? and confirmed <> 'X'";
sql = "select count(*) as cnt from fullfinal_hdr where emp_code = ? and tran_id <> ? and confirmed <> 'X'";
pstmt1 = conn.prepareStatement(sql); pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1,empCode); pstmt1.setString(1,empCode);
pstmt1.setString(2,tranID); pstmt1.setString(2,tranID);
......
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