修改数据范围

This commit is contained in:
JaguarJack 2020-07-04 21:35:01 +08:00
parent c2da2e5806
commit e798098a05

View File

@ -11,7 +11,7 @@ trait DataRangScopeTrait
* @author JaguarJack <njphper@gmail.com>
* @date 2020/6/6
*/
protected function scopeDataRange($roles)
protected function dataRange($roles)
{
return $this->whereIn($this->aliasField('creator_id'), $this->getDepartmentUserIdsBy($roles));
}