|
...
|
...
|
@@ -5,6 +5,7 @@ namespace App\Console\Commands\YesterdayCount; |
|
|
|
use App\Helper\Common;
|
|
|
|
use App\Helper\FormGlobalsoApi;
|
|
|
|
use App\Models\CustomerVisit\CustomerVisitItem;
|
|
|
|
use App\Models\HomeCount\Count as CountMo;
|
|
|
|
use App\Models\Project\DeployBuild;
|
|
|
|
use Carbon\Carbon;
|
|
|
|
use Illuminate\Console\Command;
|
|
...
|
...
|
@@ -62,7 +63,9 @@ class Yesterday extends Command |
|
|
|
$arr['updated_at'] = date('Y-m-d H:i:s');
|
|
|
|
$data[] = $arr;
|
|
|
|
}
|
|
|
|
DB::table('gl_count')->insert($data);
|
|
|
|
//判断数据是否存在
|
|
|
|
$countModel = new CountModel();
|
|
|
|
$countModel->insert($data);
|
|
|
|
echo $this->error;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|