|
|
@ -14,7 +14,8 @@ |
|
|
|
a.account, |
|
|
|
a.account, |
|
|
|
c.*, |
|
|
|
c.*, |
|
|
|
IFNULL( cla.province, '未完善' ) AS province, |
|
|
|
IFNULL( cla.province, '未完善' ) AS province, |
|
|
|
IFNULL( cla.city, '未完善' ) AS city |
|
|
|
IFNULL( cla.city, '未完善' ) AS city, |
|
|
|
|
|
|
|
cla.id AS teamId |
|
|
|
FROM |
|
|
|
FROM |
|
|
|
hr_enterprise_certification c |
|
|
|
hr_enterprise_certification c |
|
|
|
INNER JOIN hr_user_account a ON a.id = c.account_id |
|
|
|
INNER JOIN hr_user_account a ON a.id = c.account_id |
|
|
@ -23,6 +24,7 @@ |
|
|
|
LEFT JOIN k_platform_team_account ta ON ta.account_id = a.id |
|
|
|
LEFT JOIN k_platform_team_account ta ON ta.account_id = a.id |
|
|
|
LEFT JOIN k_platform_team t ON ta.manage_id = t.manage_id |
|
|
|
LEFT JOIN k_platform_team t ON ta.manage_id = t.manage_id |
|
|
|
LEFT JOIN k_platform_team_classification cla ON cla.id = t.classification_id |
|
|
|
LEFT JOIN k_platform_team_classification cla ON cla.id = t.classification_id |
|
|
|
|
|
|
|
AND is_team = 1 |
|
|
|
AND cla.is_del = 0 |
|
|
|
AND cla.is_del = 0 |
|
|
|
WHERE |
|
|
|
WHERE |
|
|
|
a.is_del = 0 |
|
|
|
a.is_del = 0 |
|
|
@ -75,7 +77,8 @@ |
|
|
|
a.account, |
|
|
|
a.account, |
|
|
|
c.*, |
|
|
|
c.*, |
|
|
|
IFNULL( cla.province, '未完善' ) AS province, |
|
|
|
IFNULL( cla.province, '未完善' ) AS province, |
|
|
|
IFNULL( cla.city, '未完善' ) AS city |
|
|
|
IFNULL( cla.city, '未完善' ) AS city, |
|
|
|
|
|
|
|
cla.id AS teamId |
|
|
|
FROM |
|
|
|
FROM |
|
|
|
hr_enterprise_certification c |
|
|
|
hr_enterprise_certification c |
|
|
|
INNER JOIN hr_user_account a ON a.id = c.account_id |
|
|
|
INNER JOIN hr_user_account a ON a.id = c.account_id |
|
|
@ -84,6 +87,7 @@ |
|
|
|
LEFT JOIN k_platform_team_account ta ON ta.account_id = a.id |
|
|
|
LEFT JOIN k_platform_team_account ta ON ta.account_id = a.id |
|
|
|
LEFT JOIN k_platform_team t ON ta.manage_id = t.manage_id |
|
|
|
LEFT JOIN k_platform_team t ON ta.manage_id = t.manage_id |
|
|
|
LEFT JOIN k_platform_team_classification cla ON cla.id = t.classification_id |
|
|
|
LEFT JOIN k_platform_team_classification cla ON cla.id = t.classification_id |
|
|
|
|
|
|
|
AND is_team = 1 |
|
|
|
AND cla.is_del = 0 |
|
|
|
AND cla.is_del = 0 |
|
|
|
WHERE |
|
|
|
WHERE |
|
|
|
a.is_del = 0 |
|
|
|
a.is_del = 0 |
|
|
|