|
|
|
|
@ -1359,7 +1359,7 @@ public class AnalisesDataProvider extends GenericDataProvider
|
|
|
|
|
if( nome != null )
|
|
|
|
|
{
|
|
|
|
|
firstWhereExp = firstWhereExp.and(
|
|
|
|
|
new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isLike( "%" + nome + "%" ).or(
|
|
|
|
|
new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isILike( "%" + nome + "%" ).or(
|
|
|
|
|
new Field( "lower(" + db.data.siprp_local.outer.TrabalhadoresData.NUMERO_MECANOGRAFICO_FULL + ")" )
|
|
|
|
|
.isLike( "%" + nrMecanografico.toLowerCase() + "%" ) ) );
|
|
|
|
|
}
|
|
|
|
|
@ -1375,7 +1375,7 @@ public class AnalisesDataProvider extends GenericDataProvider
|
|
|
|
|
if( nome != null )
|
|
|
|
|
{
|
|
|
|
|
firstWhereExp = firstWhereExp
|
|
|
|
|
.and( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isLike( "%" + nome + "%" ) );
|
|
|
|
|
.and( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isILike( "%" + nome + "%" ) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1420,7 +1420,7 @@ public class AnalisesDataProvider extends GenericDataProvider
|
|
|
|
|
if( nome != null )
|
|
|
|
|
{
|
|
|
|
|
secondWhereExp = secondWhereExp.and(
|
|
|
|
|
new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isLike( "%" + nome + "%" ).or(
|
|
|
|
|
new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isILike( "%" + nome + "%" ).or(
|
|
|
|
|
new Field( "lower(" + db.data.siprp_local.outer.TrabalhadoresData.NUMERO_MECANOGRAFICO_FULL + ")" )
|
|
|
|
|
.isLike( "%" + nrMecanografico.toLowerCase() + "%" ) ) );
|
|
|
|
|
}
|
|
|
|
|
@ -1436,7 +1436,7 @@ public class AnalisesDataProvider extends GenericDataProvider
|
|
|
|
|
if( nome != null )
|
|
|
|
|
{
|
|
|
|
|
secondWhereExp = secondWhereExp
|
|
|
|
|
.and( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isLike( "%" + nome + "%" ) );
|
|
|
|
|
.and( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isILike( "%" + nome + "%" ) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -2641,7 +2641,7 @@ public class AnalisesDataProvider extends GenericDataProvider
|
|
|
|
|
{
|
|
|
|
|
nome = StringPlainer.convertString( nome.trim() );
|
|
|
|
|
nome = nome.replaceAll( " ", "%" );
|
|
|
|
|
where = where.and( new Field( "plain_utf8( " + AcidentadosData.NOME_FULL + " )" ).isLike( "%" + nome + "%" ) );
|
|
|
|
|
where = where.and( new Field( "plain_utf8( " + AcidentadosData.NOME_FULL + " )" ).isILike( "%" + nome + "%" ) );
|
|
|
|
|
}
|
|
|
|
|
if( visitaDate != null )
|
|
|
|
|
{
|
|
|
|
|
@ -2654,7 +2654,7 @@ public class AnalisesDataProvider extends GenericDataProvider
|
|
|
|
|
if( por != null )
|
|
|
|
|
{
|
|
|
|
|
where =
|
|
|
|
|
where.and( new Field( AcidentadosData.NUMERO_MECANOGRAFICO_FULL ).isLike( "%" + por.toUpperCase() + "%" ) );
|
|
|
|
|
where.and( new Field( AcidentadosData.NUMERO_MECANOGRAFICO_FULL ).isILike( "%" + por.toUpperCase() + "%" ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( visitaDate == null )
|
|
|
|
|
|