Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean possuiHistorico(Long atendimentoId) {
- QueryAtendimentoProfissional query = new QueryAtendimentoProfissional(this.getEm());
- query.andAtendimentoIdEqual(atendimentoId);
- Date dataInicio = EsusDataUtil.normalizeTime(EsusDataUtil.getDataAtual(), true);
- Date dataFim = EsusDataUtil.normalizeTime(EsusDataUtil.getDataAtual(), false);
- query.andDataInicioBetween(dataInicio, dataFim);
- return query.count() > 0;
- }
- public void andDataInicioBetween(Date dataInicio, Date dataFim) {
- this.and(this.getBasePath().dataHorarioInicio.between(dataInicio, dataFim));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement