step 4 : add company id, company name graphql
This commit is contained in:
@@ -90,6 +90,8 @@ func (staff *Staff) LoginAttendance(email string, id_google_sign_in string) (*mo
|
||||
M_StaffName,
|
||||
M_StaffEmail,
|
||||
M_StaffNoHp,
|
||||
M_CompanyID,
|
||||
M_CompanyName,
|
||||
M_StaffIsActive,
|
||||
M_StaffIsLogin,
|
||||
M_StaffToken,
|
||||
@@ -97,7 +99,10 @@ func (staff *Staff) LoginAttendance(email string, id_google_sign_in string) (*mo
|
||||
M_StaffCreated,
|
||||
M_StaffLastUpdated
|
||||
FROM m_staff
|
||||
WHERE M_StaffIsActive = 'Y'
|
||||
join m_company
|
||||
ON M_StaffM_CompanyID = M_CompanyID
|
||||
AND M_CompanyIsActive = 'Y'
|
||||
AND M_StaffIsActive = 'Y'
|
||||
AND M_StaffIDGoogleSignIn = ?
|
||||
AND M_StaffEmail = ?`
|
||||
|
||||
@@ -114,6 +119,8 @@ func (staff *Staff) LoginAttendance(email string, id_google_sign_in string) (*mo
|
||||
&ret.Name,
|
||||
&ret.Email,
|
||||
&ret.PhoneNumber,
|
||||
&ret.CompanyID,
|
||||
&ret.CompanyName,
|
||||
&ret.IsActive,
|
||||
&ret.IsLogin,
|
||||
&ret.Token,
|
||||
|
||||
Reference in New Issue
Block a user