[fix] Returning idEmployeeType instead of name type
This commit is contained in:
parent
68723e82fe
commit
38d3466f16
@ -279,14 +279,12 @@ class EmployeeApplication{
|
|||||||
p.email,
|
p.email,
|
||||||
p.phone,
|
p.phone,
|
||||||
e.code,
|
e.code,
|
||||||
et.name AS employeeType,
|
e.idEmployeeType,
|
||||||
e.contractType
|
e.contractType
|
||||||
FROM
|
FROM
|
||||||
employees e
|
employees e
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
persons p ON p.id = e.idPerson
|
persons p ON p.id = e.idPerson
|
||||||
INNER JOIN
|
|
||||||
employeeType et ON et.id = e.idEmployeeType
|
|
||||||
WHERE
|
WHERE
|
||||||
e.id = :idEmployee");
|
e.id = :idEmployee");
|
||||||
|
|
||||||
@ -326,7 +324,7 @@ class EmployeeApplication{
|
|||||||
"email" => $this->cryptographyService->decryptString($employeeData['email']),
|
"email" => $this->cryptographyService->decryptString($employeeData['email']),
|
||||||
"phone" => $employeeData['phone'],
|
"phone" => $employeeData['phone'],
|
||||||
"code" => $employeeData['code'],
|
"code" => $employeeData['code'],
|
||||||
"employeeType" => $employeeData['employeeType'],
|
"idEmployeeType" => $employeeData['idEmployeeType'],
|
||||||
"contractType" => $employeeData['contractType']
|
"contractType" => $employeeData['contractType']
|
||||||
|
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user