SettlementBillReportInterface.php 780 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Interfaces;
  3. use Illuminate\Database\Eloquent\Builder;
  4. interface SettlementBillReportInterface
  5. {
  6. /**
  7. * 生成报表数据
  8. * 如果参数$counting_month为空 统计上一个月的
  9. * 如果参数$counting_month为2021-01-01 则统计2021-01-01 -- 2021-01-31之间的数据
  10. * @param null $counting_month 统计月份,默认统计上个月的 2021-05-01
  11. */
  12. public function recordReport($counting_month = null);
  13. /**
  14. * @param $owner_id
  15. * @param $counting_month
  16. * @return Builder
  17. */
  18. public function getSql($owner_id, $counting_month): Builder;
  19. /**
  20. * @param $type
  21. * @return int|mixed
  22. */
  23. public function switchType($type);
  24. public function buildExport($details): array;
  25. }