no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@297 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 19 years ago
parent 9cefcc231c
commit 0b087e380c

@ -130,4 +130,30 @@ public class LembretesDataProvider
new Field( "marcacao_trabalhador_id" ).isEqual( marcacaoID ) ); new Field( "marcacao_trabalhador_id" ).isEqual( marcacaoID ) );
EXECUTER.executeQuery( delete ); EXECUTER.executeQuery( delete );
} }
public int countLembretesByTipo( Integer tipoID )
throws Exception
{
Select select =
new Select( new String[]{ "lembretes" },
new String[]{ "COUNT(*)" },
new Field( "tipo_id" ).isEqual( tipoID ).and(
new Field( "data" ).isLessOrEqual( new Date() ) ) );
Virtual2DArray array = EXECUTER.executeQuery( select );
if( array.columnLength() == 0 || array.get( 0, 0 ) == null )
{
return 0;
}
else
{
return ( ( Number ) array.get( 0, 0 ) ).intValue();
}
}
public void getLembretesByTipo( Integer tipoID )
throws Exception
{
}
} }

Loading…
Cancel
Save