|
|
|
|
@ -532,7 +532,7 @@ public class FichaDataProvider extends MetaProvider implements SearchExecuter {
|
|
|
|
|
new Select( new String[]{ "marcacoes_trabalhador" },
|
|
|
|
|
new String[]{ "MAX( data )" },
|
|
|
|
|
new Field( "trabalhador_id" ).isEqual( trabalhadorID ).and(
|
|
|
|
|
new Field( "tipo" ).isEqual( Marcacao.TIPO_MARCACAO_TRABALHADOR_CONSULTA ) ).and(
|
|
|
|
|
new Field( "tipo" ).isEqual( new Integer( Marcacao.TIPO_MARCACAO_TRABALHADOR_CONSULTA ) ) ).and(
|
|
|
|
|
new Field( "realizada" ).isEqual( "y" ).or(
|
|
|
|
|
new Field( "estado" ).isEqual( new Integer( 2 ) ) ) ) );
|
|
|
|
|
Virtual2DArray array = executer.executeQuery( select );
|
|
|
|
|
@ -546,7 +546,7 @@ public class FichaDataProvider extends MetaProvider implements SearchExecuter {
|
|
|
|
|
new String[]{ "motivo", "id" },
|
|
|
|
|
new Field( "data" ).isEqual( data ).and(
|
|
|
|
|
new Field( "trabalhador_id" ).isEqual( trabalhadorID ) ).and(
|
|
|
|
|
new Field( "tipo" ).isEqual( Marcacao.TIPO_MARCACAO_TRABALHADOR_CONSULTA ) ).and(
|
|
|
|
|
new Field( "tipo" ).isEqual( new Integer( Marcacao.TIPO_MARCACAO_TRABALHADOR_CONSULTA ) ) ).and(
|
|
|
|
|
new Field( "realizada" ).isEqual( "y" ).or(
|
|
|
|
|
new Field( "estado" ).isEqual( new Integer( 2 ) ) ) ),
|
|
|
|
|
new String[]{ "id" }, null );
|
|
|
|
|
|