|
@@ -84,11 +84,11 @@ class Goods extends Controller
|
|
|
}
|
|
|
$query = ShopGoods::mQuery()->like('name')->equal('code,status');
|
|
|
$result = $query->where('admin_id',$admin_id->id)->where($ids)->where('deleted',0)->order('id desc')->page(true, false, false, 10);
|
|
|
- foreach ($result['list'] as &$v){
|
|
|
- if($v['stock_total']<=50){
|
|
|
- ShopGoods::mk()->where('id',$v['id'])->save(['status'=>2]);
|
|
|
- }
|
|
|
- }
|
|
|
+// foreach ($result['list'] as &$v){
|
|
|
+// if($v['stock_total']<=50){
|
|
|
+// ShopGoods::mk()->where('id',$v['id'])->save(['status'=>2]);
|
|
|
+// }
|
|
|
+// }
|
|
|
$data['count'] =$count;
|
|
|
$data['list']=$result;
|
|
|
$this->success('我的商品列表',$data);
|