This commit is contained in:
mahdahar 2025-11-07 16:41:42 +07:00
parent a907fb675e
commit 0e4b9824f7

View File

@ -27,9 +27,10 @@ class WorkstationModel extends BaseModel {
CASE
WHEN workstation.Enable = 1 THEN 'Enabled'
ELSE 'Disabled'
END AS EnableText")
END AS EnableText, valueset.VValue as TypeName")
->join('workstation wst1', 'workstation.LinkTo=wst1.WorkstationID', 'left')
->join('department', 'department.DepartmentID=workstation.DepartmentID', 'left')
->join('valueset', 'valueset.VID=workstation.Type', 'left')
->where('workstation.WorkstationID', $WorkstationID)
->findAll();
return $rows;