some progress in fast sell

This commit is contained in:
Hesabix 2023-11-28 02:19:29 -05:00
parent 1cd2176f33
commit 1a6feea31a
9 changed files with 16 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

View file

@ -131,9 +131,22 @@ class PersonsController extends AbstractController
{ {
if(!$access->hasRole('person')) if(!$access->hasRole('person'))
throw $this->createAccessDeniedException(); throw $this->createAccessDeniedException();
$persons = $entityManager->getRepository(Person::class)->findBy([ $params = [];
'bid'=>$request->headers->get('activeBid') if ($content = $request->getContent()) {
]); $params = json_decode($content, true);
}
if(array_key_exists('speedAccess',$params)){
$persons = $entityManager->getRepository(Person::class)->findBy([
'bid'=>$request->headers->get('activeBid'),
'speedAccess'=>true
]);
}
else{
$persons = $entityManager->getRepository(Person::class)->findBy([
'bid'=>$request->headers->get('activeBid')
]);
}
$response = $provider->ArrayEntity2Array($persons,0); $response = $provider->ArrayEntity2Array($persons,0);
foreach ($persons as $key =>$person){ foreach ($persons as $key =>$person){
$rows = $entityManager->getRepository(HesabdariRow::class)->findBy([ $rows = $entityManager->getRepository(HesabdariRow::class)->findBy([