Facebook
From Morose Pig, 2 Years ago, written in Java.
This paste is a reply to Re: Untitled from Colorant Baboon - go back
Embed
Viewing differences between Re: Untitled and Re: Re: Untitled
do
$$
    
    declare ap record;
    declare listaFuncionalide record;
begin
    
public void ordernarServicoExternoTotal(List listaRecolhimentoServicoTotalTOList) {
if (!CollectionUtil.isNullOrEmpty(listaRecolhimentoServicoTotalTOList)) {
for ap in (select * from perfil p)
    loop 
        raise notice 'perfil %', ap.id_perfil;    
       

            for listaFuncionalide in (select * from funcionalidade f  limit 10)
            loop 
                raise notice 'funcionalidade %', listaFuncionalide.id_funcionalidade;    
                     
            end loop;
       
    end loop;
end
$$;
(RelatorioRecolhimentoServicoTotalTO recolhimentoServicoTotalTO : listaRecolhimentoServicoTotalTOList) {
if (recolhimentoServicoTotalTO.getNomeRecebedor() != null) {
if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Tabelião")) {
recolhimentoServicoTotalTO.setOrdemExibicao(1);
}
if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Estado")) {
recolhimentoServicoTotalTO.setOrdemExibicao(2);
}
if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Secretaria da Fazenda")) {
recolhimentoServicoTotalTO.setOrdemExibicao(3);
}

if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Município")) {
recolhimentoServicoTotalTO.setOrdemExibicao(4);
}

if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Ministério Público")) {
recolhimentoServicoTotalTO.setOrdemExibicao(5);
}

if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Registro Civil")) {
recolhimentoServicoTotalTO.setOrdemExibicao(6);
}

if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Tribunal de Justiça")) {
recolhimentoServicoTotalTO.setOrdemExibicao(7);
}

if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Sta. Casa")) {
recolhimentoServicoTotalTO.setOrdemExibicao(8);
}
}
}
listaRecolhimentoServicoTotalTOList.sort(Comparator.comparing(RelatorioRecolhimentoServicoTotalTO::getOrdemExibicao));
listaRecolhimentoServicoTotalTOList.sort(Comparator.comparing(RelatorioRecolhimentoServicoTotalTO::getIdOrcamentoAto));
}
}

Replies to Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Untitled Sloppy Dormouse java 2 Years ago.