|
@@ -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')
|