Cola de impresion
This commit is contained in:
parent
1a00a04fab
commit
e85d2951d3
|
|
@ -20,8 +20,7 @@ import com.fp.persistence.parmas.param.TarmCentroControl;
|
|||
import com.fp.persistence.pgeneral.safe.TsafeUserDetail;
|
||||
|
||||
/**
|
||||
* Componente que realiza la búsquedas de los datos de impresión
|
||||
* de un usuario
|
||||
* Componente que realiza la búsquedas de los datos de impresión de un usuario
|
||||
*
|
||||
* @author dcruz
|
||||
*
|
||||
|
|
@ -30,8 +29,8 @@ 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.* FROM TarmColadeImpresion o "
|
||||
+ "left join tarmdocumentohabilitante i on o.cdocumento = i.cdocumento "
|
||||
private static final String QUERY_COLA_IMPRESION = "SELECT cdocumento, estadoimpresion, estadoimpresioncode, cimpresion, fechaimpresion, fecharegistro, codigotarjeta "
|
||||
+ "FROM TarmColadeImpresion o left join tarmdocumentohabilitante i on o.cdocumento = i.cdocumento "
|
||||
+ "left join tarmsolicitud k on i.csolicitud = k.csolicitud "
|
||||
+ "WHERE o.estadoimpresion=:estado and i.ccentrocontrol = :ccentrocontrol and coalesce(k.estado,'APB') IN ('APB','FIN')";
|
||||
|
||||
|
|
@ -84,12 +83,12 @@ public class ColaImpresion extends QueryRule {
|
|||
List<Object[]> ltarmColadeImpresionsTMP = query.getResultList();
|
||||
for (Object[] tmp : ltarmColadeImpresionsTMP) {
|
||||
TarmColadeImpresion colaImpresionObj = new TarmColadeImpresion();
|
||||
colaImpresionObj.setPk(tmp[3].toString());
|
||||
colaImpresionObj.setCdocumento(((BigDecimal) tmp[0]).longValue());
|
||||
colaImpresionObj.setEstadoimpresion(tmp[1].toString());
|
||||
colaImpresionObj.setFechaimpresion((Timestamp) tmp[4]);
|
||||
colaImpresionObj.setEstadoimpresioncode(tmp[2].toString());
|
||||
colaImpresionObj.setCdocumento((new BigDecimal(tmp[0].toString())).longValue());
|
||||
colaImpresionObj.setFecharegistro(new Date(((Timestamp) tmp[5]).getTime()));
|
||||
colaImpresionObj.setPk(tmp[3].toString());
|
||||
colaImpresionObj.setFechaimpresion(tmp[4] == null ? null : new Timestamp(((Date) tmp[4]).getTime()));
|
||||
colaImpresionObj.setFecharegistro(tmp[5] == null ? null : (Date) tmp[5]);
|
||||
if (tmp[6] != null) {
|
||||
colaImpresionObj.setCodigotarjeta(tmp[6].toString());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue