modified: .gitignore

This commit is contained in:
brusnitsyn
2026-04-21 10:08:14 +09:00
parent 0e8b6f61b4
commit 2041ab54ea
74 changed files with 7533 additions and 1544 deletions

View File

@@ -2,7 +2,23 @@
namespace App\Services;
use App\Models\MisStationarBranch;
use Illuminate\Support\Facades\Cache;
class StationarBranchService
{
/**
* Получение идентификаторов приемных отделений. Кешируется на 24ч
* @return array
*/
public function getWardIds(): array
{
return Cache::tags(['wards_ids'])
->remember('branch_ward_ids', now()->addHours(24), function () {
return MisStationarBranch::query()
->where('IsHospitalWard', 1)
->pluck('StationarBranchID')
->toArray();
});
}
}