修改渠道ChannelManage关联部门SystemDepart
This commit is contained in:
@@ -18,6 +18,7 @@ use plugin\saiadmin\basic\eloquent\BaseModel;
|
||||
* @property $title 标题
|
||||
* @property $status 状态
|
||||
* @property $admin_id 管理员
|
||||
* @property $department_id 所属部门ID,关联sa_system_dept
|
||||
* @property $game_url 游戏地址
|
||||
* @property $image 图标
|
||||
* @property $agent 代理agent
|
||||
@@ -67,6 +68,16 @@ class ChannelManage extends BaseModel
|
||||
$query->where('title', 'like', '%'.$value.'%');
|
||||
}
|
||||
|
||||
/**
|
||||
* 部门 搜索
|
||||
*/
|
||||
public function searchDepartmentIdAttr($query, $value)
|
||||
{
|
||||
if ($value !== '' && $value !== null) {
|
||||
$query->where('department_id', $value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 总充值 搜索
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user