|
|
@ -39,7 +39,8 @@ |
|
|
|
enterprise_name, |
|
|
|
qualification_category, |
|
|
|
dynamic_credit_score, |
|
|
|
legal_representative |
|
|
|
legal_representative, |
|
|
|
q.level |
|
|
|
FROM |
|
|
|
bs_sgc_yxjd_qualifications q |
|
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
|
@ -60,12 +61,14 @@ |
|
|
|
ADCD, |
|
|
|
dynamic_credit_score, |
|
|
|
qualification_category, |
|
|
|
legal_representative |
|
|
|
legal_representative, |
|
|
|
level |
|
|
|
FROM bs_sgc_yxjd_enterprise_info fo |
|
|
|
LEFT JOIN (SELECT qualification_category, dynamic_credit_score, enterprise_id |
|
|
|
FROM (SELECT qualification_category, |
|
|
|
dynamic_credit_score, |
|
|
|
enterprise_id, |
|
|
|
level, |
|
|
|
@num := IF(@type = qualification_category, @num + 1, 1) AS row_number, |
|
|
|
@type := qualification_category AS dummy |
|
|
|
FROM bs_sgc_yxjd_qualifications |
|
|
@ -81,7 +84,7 @@ |
|
|
|
enterprise_name, |
|
|
|
ADCD, |
|
|
|
dynamic_credit_score, |
|
|
|
qualification_category,legal_representative |
|
|
|
qualification_category,legal_representative,q.level |
|
|
|
FROM |
|
|
|
bs_sgc_yxjd_qualifications q |
|
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
|
@ -108,7 +111,7 @@ |
|
|
|
enterprise_name, |
|
|
|
ADCD, |
|
|
|
dynamic_credit_score, |
|
|
|
qualification_category,legal_representative |
|
|
|
qualification_category,legal_representative,q.level |
|
|
|
FROM |
|
|
|
bs_sgc_yxjd_qualifications q |
|
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
|
|