aggiunto :

->where(function ($query) {
                $query->where('DescrizioneStatoProdotto', 'In commercio')
                    ->orWhere('DescrizioneStatoProdotto', '2023 in commercio')
                    ->orWhere('DescrizioneStatoProdotto', 'Vendita sito')
                    ->orWhere('DescrizioneStatoProdotto', 'In prevendita')
                    ->orWhere('DescrizioneStatoProdotto', 'Prossima uscita');
            })
This commit is contained in:
paoloar77
2025-04-16 15:48:50 +02:00
parent 89f44f02d9
commit 9d64036519
7 changed files with 53 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ class ProductUpdateGm extends Command
ini_set("memory_limit", "512M");
$settingora = Setting::where('key', 'update_products')->first();
$productLogger = new ProductLogger($settingora, 'updateproducts', true);
try {
$productLogger->addLog('inserted', 'PRODOTTI INSERITI' . "\n");
$productLogger->addLog('not_inserted', 'EVENTUALI PRODOTTI NON INSERITI' . "\n");
@@ -85,10 +85,12 @@ class ProductUpdateGm extends Command
->where('data', '>=', $fromtime)
->where(function ($query) {
$query->where('DescrizioneStatoProdotto', 'In commercio')
->orWhere('DescrizioneStatoProdotto', '2023 in commercio')
->orWhere('DescrizioneStatoProdotto', 'Vendita sito')
->orWhere('DescrizioneStatoProdotto', 'In prevendita')
->orWhere('DescrizioneStatoProdotto', 'Prossima uscita');
})
//->where('DescrizioneTipologia','Video Streaming')
//->where('DescrizioneTipologia','Video Streaming')
->orderBy('Titolo')
->get();