Cola de impresion
This commit is contained in:
parent
06b1eeb1ee
commit
530307ccc8
|
|
@ -30,8 +30,10 @@ public class ColaImpresion extends QueryRule {
|
|||
private static final long serialVersionUID = -3993166768741911054L;
|
||||
private static final String QUERY_USUARIO_ID = "SELECT o FROM TsafeUserDetail o WHERE o.pk.usercode=:usercode AND o.pk.dateto=:dateto";
|
||||
private static final String QUERY_COLA_IMPRESION = "SELECT o.cdocumento, o.estadoimpresion, o.estadoimpresioncode, o.cimpresion, o.fechaimpresion, o.fecharegistro, o.codigotarjeta "
|
||||
+ "FROM TarmColadeImpresion o left join tarmdocumentohabilitante i on o.cdocumento = i.cdocumento "
|
||||
+ "left join tarmsolicitud k on i.csolicitud = k.csolicitud "
|
||||
+ "FROM TarmColadeImpresion o "
|
||||
+ "inner join tarmdocumentohabilitante i on o.cdocumento = i.cdocumento "
|
||||
+ "inner join tarmsolicituddocumento n on n.cdocumento = o.cdocumento "
|
||||
+ "inner join tarmsolicitud k on i.csolicitud = k.csolicitud"
|
||||
+ "WHERE o.estadoimpresion=:estado and i.ccentrocontrol = :ccentrocontrol and coalesce(k.estado,'APB') IN ('APB','FIN')";
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
|
@ -74,12 +76,11 @@ public class ColaImpresion extends QueryRule {
|
|||
} else {
|
||||
return pRequest;
|
||||
}
|
||||
System.out.println("QUERY COLA IMPRESION: " + QUERY_COLA_IMPRESION);
|
||||
query = PersistenceHelper.getEntityManager().createNativeQuery(QUERY_COLA_IMPRESION);
|
||||
query.setParameter("estado", estado);
|
||||
query.setParameter("ccentrocontrol", tarmCentroControl.getPk());
|
||||
|
||||
List<TarmColadeImpresion> coladeImpresionList = new ArrayList<TarmColadeImpresion>();
|
||||
System.err.println("=============>>> QUERY EJECUTAR | " + estado + " | " + tarmCentroControl.getPk());
|
||||
List<TarmColadeImpresion> coladeImpresionList = new ArrayList<>();
|
||||
List<Object[]> ltarmColadeImpresionsTMP = query.getResultList();
|
||||
for (Object[] tmp : ltarmColadeImpresionsTMP) {
|
||||
TarmColadeImpresion colaImpresionObj = new TarmColadeImpresion();
|
||||
|
|
|
|||
Loading…
Reference in New Issue