correciones
This commit is contained in:
@@ -272,7 +272,7 @@ export class EquipoService {
|
||||
{ id_tipo_carrito: tipoCarrito.id_tipo_carrito },
|
||||
)
|
||||
.innerJoin('m.institucion', 'i', 'i.activo = 1')
|
||||
.where('prestado = 1');
|
||||
.where('e.prestado = 1');
|
||||
const query = this.repository
|
||||
.createQueryBuilder('e')
|
||||
.innerJoinAndSelect('e.carrito', 'c', 'c.activo = 1')
|
||||
@@ -283,9 +283,7 @@ export class EquipoService {
|
||||
'c.modulo',
|
||||
'm',
|
||||
'm.id_modulo = :id_modulo AND m.activo = 1',
|
||||
{
|
||||
id_modulo: modulo.id_modulo,
|
||||
},
|
||||
{ id_modulo: modulo.id_modulo },
|
||||
)
|
||||
.innerJoinAndSelect(
|
||||
'c.tipoCarrito',
|
||||
|
||||
@@ -6,7 +6,8 @@ export class Infraccion {
|
||||
@PrimaryGeneratedColumn()
|
||||
id_infraccion: number;
|
||||
|
||||
@Column({ type: String, nullable: false, length: 60 })
|
||||
// @Column({ type: String, nullable: false, length: 60 })
|
||||
@Column({ type: String, nullable: false, length: 50 })
|
||||
infraccion: string;
|
||||
|
||||
@OneToMany(
|
||||
|
||||
@@ -336,12 +336,12 @@ export class PrestamoService {
|
||||
.innerJoinAndSelect('ic.carrera', 'ca')
|
||||
.innerJoinAndSelect('ic.institucion', 'in')
|
||||
.innerJoinAndSelect('ca.nivel', 'n')
|
||||
.orderBy('i.institucion')
|
||||
.orderBy('p.id_prestamo', 'DESC')
|
||||
.addOrderBy('i.institucion')
|
||||
.addOrderBy('m.modulo')
|
||||
.addOrderBy('tc.tipo_carrito')
|
||||
.addOrderBy('c.carrito')
|
||||
.addOrderBy('e.equipo')
|
||||
.addOrderBy('p.id_prestamo', 'DESC')
|
||||
.skip((parseInt(filtros.pagina) - 1) * 25)
|
||||
.take(25);
|
||||
|
||||
@@ -552,7 +552,7 @@ export class PrestamoService {
|
||||
});
|
||||
}
|
||||
|
||||
mensajeNoPoderPedir() {
|
||||
private mensajeNoPoderPedir() {
|
||||
return 'No puedes pedir equipos de cómputo porque:';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user