This commit is contained in:
molong committed 2026-02-11 15:16:11 +08:00
1 parent 2720de7f44
commit 1bfe30651e
18 files changed
+444 -689

No files matched your search

+8
View File
@@ -56,6 +56,14 @@ class DepartmentService
{
$query = Department::query();
// 搜索条件
if (!empty($params['keyword'])) {
$query->where(function ($q) use ($params) {
$q->where('name', 'like', '%' . $params['keyword'] . '%')
->orWhere('leader', 'like', '%' . $params['keyword'] . '%');
});
}
if (isset($params['status']) && $params['status'] !== '') {
$query->where('status', $params['status']);
}