| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Interfaces;
- use Illuminate\Database\Eloquent\Builder;
- interface SettlementBillReportInterface
- {
- /**
- * 生成报表数据
- * 如果参数$counting_month为空 统计上一个月的
- * 如果参数$counting_month为2021-01-01 则统计2021-01-01 -- 2021-01-31之间的数据
- * @param null $counting_month 统计月份,默认统计上个月的 2021-05-01
- */
- public function recordReport($counting_month = null);
- /**
- * @param $owner_id
- * @param $counting_month
- * @return Builder
- */
- public function getSql($owner_id, $counting_month): Builder;
- /**
- * @param $type
- * @return int|mixed
- */
- public function switchType($type);
- public function buildExport($details): array;
- }
|