|
...
|
...
|
@@ -10,6 +10,7 @@ use App\Services\ProjectServer; |
|
|
|
use Carbon\Carbon;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
|
|
|
|
class InquiryMonthlyCount extends Command
|
|
|
|
{
|
|
...
|
...
|
@@ -70,7 +71,11 @@ class InquiryMonthlyCount extends Command |
|
|
|
$arr['project_id'] = $value['project_id'];
|
|
|
|
// 获取当前日期时间
|
|
|
|
$arr['month'] = Carbon::now()->subMonth()->format('Y-m');
|
|
|
|
DB::table('gl_month_count')->insert($arr);
|
|
|
|
try {
|
|
|
|
DB::table('gl_month_count')->insert($arr);
|
|
|
|
}catch (\Exception $e){
|
|
|
|
Log::channel('month_count')->error('day_count:失败 ' . $e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
...
|
...
|
|