CompanyDownResumeService.php 705 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Services\Statistics;
  3. use App\Exceptions\ResponseException;
  4. use App\Repositories\CompanyDownResumeRepository;
  5. class CompanyDownResumeService
  6. {
  7. protected $companyDownResumeRepository;
  8. /**
  9. * CompanyDownResumeService constructor.
  10. */
  11. public function __construct(CompanyDownResumeRepository $companyDownResumeRepository)
  12. {
  13. $this->companyDownResumeRepository = $companyDownResumeRepository;
  14. }
  15. public function getResumeNumGroup($where, $group_by, $subsite_id)
  16. {
  17. $rst = $this->companyDownResumeRepository->getResumeNumGroup($where, $group_by, $subsite_id);
  18. return $rst->pluck('count(id)', 'DATE(created_at)')->toArray();
  19. }
  20. }