Ремонт сохранения снапшотов
This commit is contained in:
@@ -33,6 +33,12 @@ class UnifiedMedicalHistory extends MaterializedViewModel
|
||||
->latest('ingoing_date');
|
||||
}
|
||||
|
||||
public function latestMigrationInDepartment($query, $departmentId)
|
||||
{
|
||||
return $query->where('department_id', $departmentId)
|
||||
->latest('ingoing_date');
|
||||
}
|
||||
|
||||
public function operationsInDepartment($query, $departmentId)
|
||||
{
|
||||
return $this->operations()->where('department_id', $departmentId);
|
||||
|
||||
Reference in New Issue
Block a user