|
|
@@ -299,9 +299,9 @@ class WiwibaoProductSync extends Command
|
|
299
|
299
|
|
|
300
|
300
|
$productList = Db::name('store_product')
|
|
301
|
301
|
->where('spu_id', $findData['spu_id'])
|
|
302
|
|
- ->where('is_show', ProductEnum::IS_SHOW['Yes']['code'])
|
|
|
302
|
+ // ->where('is_show', ProductEnum::IS_SHOW['Yes']['code'])
|
|
303
|
303
|
->where('is_del', ProductEnum::IS_DEL['No']['code'])
|
|
304
|
|
- ->where('status', '<>', ProductEnum::STATUS['Withdrawn']['code'])
|
|
|
304
|
+ // ->where('status', '<>', ProductEnum::STATUS['Withdrawn']['code'])
|
|
305
|
305
|
->select()
|
|
306
|
306
|
->toArray();
|
|
307
|
307
|
$productIdList = array_column($productList, 'product_id');
|
|
|
@@ -310,10 +310,10 @@ class WiwibaoProductSync extends Command
|
|
310
|
310
|
Db::name('store_product')
|
|
311
|
311
|
->whereIn('product_id', $productIdList)
|
|
312
|
312
|
->update([
|
|
313
|
|
- 'is_show' => ProductEnum::IS_SHOW['No']['code'],
|
|
|
313
|
+ // 'is_show' => ProductEnum::IS_SHOW['No']['code'],
|
|
314
|
314
|
'is_del' => ProductEnum::IS_DEL['Yes']['code'],
|
|
315
|
|
- 'status' => ProductEnum::STATUS['Withdrawn']['code'],
|
|
316
|
|
- 'is_status' => ProductEnum::IS_STATUS['Automatic']['code']
|
|
|
315
|
+ // 'status' => ProductEnum::STATUS['Withdrawn']['code'],
|
|
|
316
|
+ // 'is_status' => ProductEnum::IS_STATUS['Automatic']['code']
|
|
317
|
317
|
]);
|
|
318
|
318
|
|
|
319
|
319
|
/** @var DouhuomallChangeLogEntity $douhuomallChangeLogEntity */
|
|
|
@@ -369,9 +369,9 @@ class WiwibaoProductSync extends Command
|
|
369
|
369
|
|
|
370
|
370
|
$productList = Db::name('store_product')
|
|
371
|
371
|
->whereIn('spu_id', $offlineSpuIds)
|
|
372
|
|
- ->where('is_show', ProductEnum::IS_SHOW['Yes']['code'])
|
|
|
372
|
+ // ->where('is_show', ProductEnum::IS_SHOW['Yes']['code'])
|
|
373
|
373
|
->where('is_del', ProductEnum::IS_DEL['No']['code'])
|
|
374
|
|
- ->where('status', '<>', ProductEnum::STATUS['Withdrawn']['code'])
|
|
|
374
|
+ // ->where('status', '<>', ProductEnum::STATUS['Withdrawn']['code'])
|
|
375
|
375
|
->field('product_id, spu_id, is_show, is_del, status')
|
|
376
|
376
|
->select()
|
|
377
|
377
|
->toArray();
|
|
|
@@ -389,10 +389,10 @@ class WiwibaoProductSync extends Command
|
|
389
|
389
|
Db::name('store_product')
|
|
390
|
390
|
->whereIn('product_id', $productIdList)
|
|
391
|
391
|
->update([
|
|
392
|
|
- 'is_show' => ProductEnum::IS_SHOW['No']['code'],
|
|
|
392
|
+ // 'is_show' => ProductEnum::IS_SHOW['No']['code'],
|
|
393
|
393
|
'is_del' => ProductEnum::IS_DEL['Yes']['code'],
|
|
394
|
|
- 'status' => ProductEnum::STATUS['Withdrawn']['code'],
|
|
395
|
|
- 'is_status' => ProductEnum::IS_STATUS['Automatic']['code']
|
|
|
394
|
+ // 'status' => ProductEnum::STATUS['Withdrawn']['code'],
|
|
|
395
|
+ // 'is_status' => ProductEnum::IS_STATUS['Automatic']['code']
|
|
396
|
396
|
]);
|
|
397
|
397
|
foreach ($spuIdMap as $spuId => $productIdListGroupBySpuId) {
|
|
398
|
398
|
/** @var DouhuomallChangeLogEntity $douhuomallChangeLogEntity */
|