step 4 : add company id, company name graphql

This commit is contained in:
sindhu
2024-01-18 16:59:47 +07:00
parent 87edd82ff7
commit c62764165d
4 changed files with 138 additions and 1 deletions

View File

@@ -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,