wugg 2 years ago
parent
commit
697aeb7e72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Good.php

+ 1 - 1
app/admin/controller/Good.php

@@ -231,7 +231,7 @@ class Good extends Base
         if ($param['exam_status'] !== '') $where[] = ['b.exam_status', "=", $param['exam_status']];
         if ($param['brand_id'] !== "") $where[] = ['a.brand_id', "=", $param['brand_id']];
         $role = $this->checkRole();
-        if (!empty($role['write'])) $where[] = ["a.createrid", "in", $role['write']];
+        if (!empty($role['write'])) $where[] = ["b.createrid", "in", $role['write']];
         if ($param['company_name'] !== '') $where[] = ["a.createrid", 'in', get_company_item_user_by_name($param['company_name'])];
 
         $count = Db::name('platform_youzan')