新增搜索

This commit is contained in:
JaguarJack
2020-04-16 17:14:37 +08:00
parent 6da68f09cd
commit def5e396e1
2 changed files with 11 additions and 0 deletions

View File

@@ -17,4 +17,9 @@ trait UserSearch
{
return $query->where($this->aliasField('status'), $value);
}
public function searchDepartmentIdAttr($query, $value, $data)
{
return $query->where($this->aliasField('department_id'), $value);
}
}