PaymentStatisticService.php 815 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: tandunzhao
  5. * Date: 2017/12/5
  6. * Time: 下午4:41
  7. */
  8. namespace App\Modules\Finance\Services;
  9. use App\Modules\Finance\Models\PaymentStatistic;
  10. class PaymentStatisticService
  11. {
  12. /**
  13. * 保存报表
  14. * @param array $data
  15. * @return mixed
  16. */
  17. public static function addPaymentStatistics($data = []) {
  18. $result = PaymentStatistic::create($data);
  19. return $result;
  20. }
  21. /**
  22. * 获取每日统计报表
  23. * @param string $start_time
  24. * @param string $end_time
  25. * @param bool $isAll
  26. * @return mixed
  27. */
  28. public static function getGroupByDayDataStatistic($start_time = '', $end_time = '', $isAll = false) {
  29. return PaymentStatistic::getGroupByDayDataStatistic($start_time, $end_time, $isAll);
  30. }
  31. }