This commit is contained in:
parent
5c86b54c51
commit
5d9db25d73
@ -64,9 +64,7 @@ class Jtl
|
|||||||
$data = array();
|
$data = array();
|
||||||
$products = $this->productRepository->findById($prodIds);
|
$products = $this->productRepository->findById($prodIds);
|
||||||
|
|
||||||
foreach ($warehousesName as $wn) {
|
$warehouse = $this->warehouseRepository->findByWarehouseByName($warehousesName);
|
||||||
$warehouse = $this->warehouseRepository->findByWarehouseByName($wn);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($warehouse) {
|
if ($warehouse) {
|
||||||
foreach ($warehouse as $w) {
|
foreach ($warehouse as $w) {
|
||||||
|
@ -49,9 +49,8 @@ class WarehouseRepository extends ServiceEntityRepository
|
|||||||
public function findByWarehouseByName($value): array
|
public function findByWarehouseByName($value): array
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('w')
|
return $this->createQueryBuilder('w')
|
||||||
->andWhere('w.name = :val')
|
->andWhere('w.name in (:val)')
|
||||||
->setParameter('val', $value)
|
->setParameter('val', $value)
|
||||||
->orderBy('w.id', 'ASC')
|
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult();
|
->getResult();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user