Commit fec5ecda authored by caluka's avatar caluka

ref_code condition site code condition removed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100963 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bbc30361
...@@ -224,10 +224,11 @@ public class PrdApplCountrySerIC extends ValidatorEJB implements PrdApplCountryS ...@@ -224,10 +224,11 @@ public class PrdApplCountrySerIC extends ValidatorEJB implements PrdApplCountryS
} }
cnt=0; cnt=0;
sql = " select count(1) FROM period_appl where site_code = ? and ref_code = ? "; sql = " select count(1) FROM period_appl where ref_code = ? " +
" AND case when type is null then 'X' else type end='S' ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode); //pstmt.setString(1, siteCode);
pstmt.setString(2, refCode); pstmt.setString(1, refCode);
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