Commit bae6f9b5 authored by msharma's avatar msharma

Site considered while checking whether record is already generated for sitecode


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94250 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2632b59b
...@@ -386,9 +386,10 @@ public class PhysicalCountSchedule implements Schedule ...@@ -386,9 +386,10 @@ public class PhysicalCountSchedule implements Schedule
} }
queryString="select count(1) from PHYSCAN where tran_date=? and tran_type='A'"; queryString="select count(1) from PHYSCAN where tran_date=? and tran_type='A' and site_code=?";
pstmt=conn.prepareStatement(queryString); pstmt=conn.prepareStatement(queryString);
pstmt.setTimestamp(1,dts); pstmt.setTimestamp(1,dts);
pstmt.setString(2,loginSiteCode);
rs=pstmt.executeQuery(); rs=pstmt.executeQuery();
while(rs.next()) while(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