SettlementBillReportInterface.php 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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, array $ownerIds = []);
  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. /**
  26. * 确认账单
  27. * @param $counting_month
  28. * @param $owner_id
  29. * @return mixed
  30. */
  31. public function confirmBill($counting_month, $owner_id);
  32. }