Commit 771c52be authored by spawar's avatar spawar

Added validation, rectification already done


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98884 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cdb79c83
......@@ -184,6 +184,24 @@ public class MetisUpdate
}
}
pstmt.close();
rs.close();
str = "select count(*) from wave_task_det where ref_ser = 'S-DSP' and status = 'Y' and ptcn = ? ";
logger.debug("SQL>>>>"+str);
pstmt = conn.prepareStatement(str);
logger.debug("SQL Param1>>>>"+ptcn);
pstmt.setString(1, ptcn);
rs = pstmt.executeQuery();
if(rs.next())
{
logger.debug("SQL Out>>>>"+rs.getInt(1));
if(rs.getInt(1) > 0)
{
retString = "Data Rectification for given PTCN already Done";
return retString;
}
}
pstmt.close();
rs.close();
conn.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