|
...
|
...
|
@@ -76,7 +76,7 @@ class UpdateProductCategory extends Command |
|
|
|
*/
|
|
|
|
public function getUpdateProductCategory(){
|
|
|
|
$productModel = new Product();
|
|
|
|
$lists = $productModel->list(['status'=>1],'id',['id','category_id']);
|
|
|
|
$lists = $productModel->list(['deleted_at'=>['!=',null]],'id',['id','category_id']);
|
|
|
|
foreach ($lists as $k => $v){
|
|
|
|
if(!empty($v['category_id'])){
|
|
|
|
$this->handleCategory($v['id'],$v['category_id']);
|
...
|
...
|
|