-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EX - Corrige exibição da Mesa Virtual para os internos (Bug após migr…
…ação MYSQL)
- Loading branch information
Showing
4 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
siga-ex/src/main/java/br/gov/jfrj/siga/ex/logic/ExPodeBuscarUltimaMovimentacaoPorId.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package br.gov.jfrj.siga.ex.logic; | ||
|
||
import com.crivano.jlogic.And; | ||
import com.crivano.jlogic.CompositeExpressionSupport; | ||
import com.crivano.jlogic.Expression; | ||
|
||
import br.gov.jfrj.siga.dp.DpLotacao; | ||
import br.gov.jfrj.siga.dp.DpPessoa; | ||
import br.gov.jfrj.siga.ex.model.enm.ExTipoDeConfiguracao; | ||
|
||
public class ExPodeBuscarUltimaMovimentacaoPorId extends CompositeExpressionSupport { | ||
|
||
private final DpPessoa titular; | ||
private final DpLotacao lotaTitular; | ||
|
||
public ExPodeBuscarUltimaMovimentacaoPorId(DpPessoa titular, DpLotacao lotaTitular) { | ||
this.titular = titular; | ||
this.lotaTitular = lotaTitular; | ||
} | ||
|
||
@Override | ||
protected Expression create() { | ||
|
||
return And.of( | ||
|
||
new ExPodePorConfiguracao(titular, lotaTitular) | ||
.withIdTpConf(ExTipoDeConfiguracao.BUSCAR_ULTIMA_MOV_POR_ID) | ||
|
||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters