| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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, array $ownerIds = []);
- /**
- * @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;
- /**
- * 确认账单
- * @param $counting_month
- * @param $owner_id
- * @return mixed
- */
- public function confirmBill($counting_month, $owner_id);
- }
|