| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace App\Jobs;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Queue\SerializesModels;
- /**
- * 生成结算账单统计数据
- * 每月初始执行
- * 统计上月的账单数据
- * Class SettlementBillCountingTask
- * @package App\Jobs
- */
- class SettlementBillCountingTask implements ShouldQueue
- {
- use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
- //货主
- private $owner_id;
- //统计月份
- private $counting_month;
- /**
- * SettlementBillCountingTask constructor.
- * @param $owner_id
- * @param $counting_month
- */
- public function __construct($owner_id, $counting_month)
- {
- $this->owner_id = $owner_id;
- $this->counting_month = $counting_month;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- if (is_null($this->owner_id)&&is_null($this->counting_month)) {//未指定统计的参数
- } else {
- //清除历史统计记录
- }
- }
- }
|