修改渠道ChannelManage关联部门SystemDepart

This commit is contained in:
2026-03-10 10:09:35 +08:00
parent e94ebd3fe6
commit a6d87d5c0d
8 changed files with 242 additions and 15 deletions

View File

@@ -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);
}
}
/**
* 总充值 搜索
*/