|
@@ -106,7 +106,7 @@ class Good extends Base
|
|
$where[]=['a.brand_id',"=",$brand_id];
|
|
$where[]=['a.brand_id',"=",$brand_id];
|
|
}
|
|
}
|
|
$role=$this->checkRole();
|
|
$role=$this->checkRole();
|
|
- if(!empty($role['write'])){
|
|
|
|
|
|
+ if(!empty($role['write']) &&$role['roleid']==8 ){
|
|
$where[]=["a.createrid","in",$role['write']];
|
|
$where[]=["a.createrid","in",$role['write']];
|
|
}
|
|
}
|
|
$count = Db::name('good')->alias("a")->leftJoin("good_platform b","a.spuCode=b.spuCode")->where($where)
|
|
$count = Db::name('good')->alias("a")->leftJoin("good_platform b","a.spuCode=b.spuCode")->where($where)
|