This commit is contained in:
zimoyin
2026-04-06 20:48:32 +08:00
parent 76e9f24aa7
commit 13fd9c5f0a
77 changed files with 6034 additions and 42 deletions
@@ -0,0 +1,23 @@
<?php
namespace plugin\admin\app\service;
use plugin\admin\app\repository\DepartmentRepository;
class DepartmentService extends BaseService
{
private DepartmentRepository $repository;
public function __construct()
{
$this->repository = DepartmentRepository::new();
}
/**
* 获取指定医院下的科室选项
*/
public function getDepartmentOptions(int $hospitalId): array
{
return $this->repository->getDepartmentsByHospital($hospitalId);
}
}