,B.LeaveStatus,B.LeaveTime,B.AssistTel AS EmployeeTel,IFNULL(B.Email,'') AS Email
,B.LeaveStatus,B.LeaveTime,B.AssistTel AS EmployeeTel,IFNULL(B.Email,'') AS Email
,0 as BaseHourFee,0 as BaseHoursEnabled,'' as EnableTime,0 as BaseHoursAdd,0 AS UserRole,0 AS IsTenCccUser
,0 as BaseHourFee,0 as BaseHoursEnabled,'' as EnableTime,0 as BaseHoursAdd,0 AS UserRole,0 AS IsTenCccUser,IFNULL(B.AccountUserType,0) AS AccountUserType
FROM rb_assist AS B LEFT JOIN rb_account AS A ON A.AccountId=B.AId AND A.AccountType=3
FROM rb_assist AS B LEFT JOIN rb_account AS A ON A.AccountId=B.AId AND A.AccountType=3
WHERE 1=1 {0} {3}
WHERE 1=1 {0} {3}
) AS A LEFT JOIN rb_group AS g ON A.Group_Id=g.GId
) AS A LEFT JOIN rb_group AS g ON A.Group_Id=g.GId