DayIncome.php
849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
namespace App\Console\Commands;
use App\Modules\Models\DayIncome\DayIncome;
use App\Repositories\Business\RentRepository;
use Illuminate\Console\Command;
class DayProfit extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'DayProfit {--day=}';
/**
* The console command description.
*
* @var string
*/
protected $description = '每日的收益数据整理';
protected $rent;
public function __construct(RentRepository $rent)
{
parent::__construct();
$this->rent = $rent;
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
//
$day = $this->option('day');
echo 'ma'.$day;
exit;
}
}