qifengquan 1 year ago
parent
commit
2b1d8e5429
1 changed files with 7 additions and 2 deletions
  1. 7 2
      app/data/controller/shop/Goods.php

+ 7 - 2
app/data/controller/shop/Goods.php

@@ -297,11 +297,16 @@ class Goods extends Controller
      */
     public function examine()
     {
-
+        if(AdminService::getUserId()==10000){
+            $admin_id = [];
+        }
+        else{
+            $admin_id['admin_id']=AdminService::getUserId();
+        }
         $this->title = '商品数据审核';
         $query = ShopGoods::mQuery();
         // 加载对应数据
-        $query->where(['deleted' => 0]);
+        $query->where(['deleted' => 0])->where($admin_id);
         // 列表排序并显示
         $query->where('examine',0)->like('code|name#name')->like('marks,cateids', ',');
         $query->equal('status,vip_entry,truck_type,rebate_type')->order('sort desc,id desc')->page();