123456789101112131415161718192021222324 |
- <?php
- namespace App\Services\Statistics;
- use App\Exceptions\ResponseException;
- use App\Repositories\CompanyDownResumeRepository;
- class CompanyDownResumeService
- {
- protected $companyDownResumeRepository;
- /**
- * CompanyDownResumeService constructor.
- */
- public function __construct(CompanyDownResumeRepository $companyDownResumeRepository)
- {
- $this->companyDownResumeRepository = $companyDownResumeRepository;
- }
- public function getResumeNumGroup($where, $group_by, $subsite_id)
- {
- $rst = $this->companyDownResumeRepository->getResumeNumGroup($where, $group_by, $subsite_id);
- return $rst->pluck('count(id)', 'DATE(created_at)')->toArray();
- }
- }
|