|
|
@@ -113,7 +113,7 @@ class Product extends Base |
|
|
|
} |
|
|
|
|
|
|
|
$result = $productModel |
|
|
|
->where(['switch' => productModel::SWITCH_ON,'stock'=>[">=",0]]) |
|
|
|
->where(['switch' => productModel::SWITCH_ON,'stock'=>[">",0]]) |
|
|
|
->page($page, $pagesize) |
|
|
|
->order($by, $desc) |
|
|
|
->field('id,title,image,sales_price,sales,real_sales') |
|
|
|