no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@112 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 22 years ago
parent 799a26efa4
commit 22629748ef

@ -412,4 +412,20 @@ public class FichaDataProvider extends MetaProvider implements SearchExecuter {
}
return objects;
}
public Integer []getAvisosIDByTipoAndDate( Integer tipo, Date date )
throws Exception
{
Select select = new Select( new String[]{ "avisos" }, new String[]{ "id", "data_evento" },
new Field( "tipo" ).isEqual( tipo ).and(
new Field( "data_evento" ).isLessOrEqual( date )),
new String[]{ "data_evento" }, null );
Virtual2DArray array = executer.executeQuery( select );
Integer ids[] = new Integer[ array.columnLength() ];
for( int n = 0; n < ids.length; n++ )
{
ids[ n ] = new Integer( ((Number)array.get( n, 0 )).intValue() );
}
return ids;
}
}

Loading…
Cancel
Save