removed space in SupplierOrderRepo
This commit is contained in:
parent
99612165f5
commit
bd6be54149
@ -14,12 +14,9 @@ public interface SupplierOrderRepository extends JpaRepository<SupplierOrder, Lo
|
|||||||
@Query("SELECT SUM(so.numberOfUnits) FROM SupplierOrder so JOIN so.ordered ao WHERE ao.articleNumber = :articleNumber AND so.delivered IS NULL")
|
@Query("SELECT SUM(so.numberOfUnits) FROM SupplierOrder so JOIN so.ordered ao WHERE ao.articleNumber = :articleNumber AND so.delivered IS NULL")
|
||||||
Integer countUndeliveredReorders(String articleNumber);
|
Integer countUndeliveredReorders(String articleNumber);
|
||||||
|
|
||||||
|
|
||||||
@Query(value = "SELECT * FROM supplier_orders as a WHERE a.supplier_id = :supplierId", nativeQuery = true)
|
@Query(value = "SELECT * FROM supplier_orders as a WHERE a.supplier_id = :supplierId", nativeQuery = true)
|
||||||
List<SupplierOrder> findOrderBySupplierID(@Param("supplierId") long supplierId);
|
List<SupplierOrder> findOrderBySupplierID(@Param("supplierId") long supplierId);
|
||||||
|
|
||||||
|
|
||||||
@Query("SELECT a FROM SupplierOrder a")
|
@Query("SELECT a FROM SupplierOrder a")
|
||||||
List<SupplierOrder> findAll();
|
List<SupplierOrder> findAll();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user