|
@ -9,6 +9,7 @@ |
|
|
<result property="enterpriseName" column="enterprise_name" /> |
|
|
<result property="enterpriseName" column="enterprise_name" /> |
|
|
<result property="qualificationCategory" column="qualification_category" /> |
|
|
<result property="qualificationCategory" column="qualification_category" /> |
|
|
<result property="dynamicCreditScore" column="dynamic_credit_score" /> |
|
|
<result property="dynamicCreditScore" column="dynamic_credit_score" /> |
|
|
|
|
|
<result property="legalRepresentative" column="legal_representative"/> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<resultMap id="BsSgcYxjdQualificationsDto" type="BsSgcYxjdQualificationsDto"> |
|
|
<resultMap id="BsSgcYxjdQualificationsDto" type="BsSgcYxjdQualificationsDto"> |
|
@ -24,7 +25,8 @@ |
|
|
enterprise_id, |
|
|
enterprise_id, |
|
|
enterprise_name, |
|
|
enterprise_name, |
|
|
qualification_category, |
|
|
qualification_category, |
|
|
dynamic_credit_score |
|
|
dynamic_credit_score, |
|
|
|
|
|
legal_representative |
|
|
FROM |
|
|
FROM |
|
|
bs_sgc_yxjd_qualifications q |
|
|
bs_sgc_yxjd_qualifications q |
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
@ -40,7 +42,7 @@ |
|
|
SET @num := 0, @type := ''; |
|
|
SET @num := 0, @type := ''; |
|
|
|
|
|
|
|
|
SELECT enterprise_id,enterprise_name,ADCD,dynamic_credit_score, |
|
|
SELECT enterprise_id,enterprise_name,ADCD,dynamic_credit_score, |
|
|
qualification_category |
|
|
qualification_category,legal_representative |
|
|
FROM bs_sgc_yxjd_enterprise_info fo LEFT JOIN (SELECT qualification_category, dynamic_credit_score,enterprise_id |
|
|
FROM bs_sgc_yxjd_enterprise_info fo LEFT JOIN (SELECT qualification_category, dynamic_credit_score,enterprise_id |
|
|
FROM ( |
|
|
FROM ( |
|
|
SELECT qualification_category, dynamic_credit_score,enterprise_id, |
|
|
SELECT qualification_category, dynamic_credit_score,enterprise_id, |
|
@ -57,7 +59,7 @@ |
|
|
enterprise_name, |
|
|
enterprise_name, |
|
|
ADCD, |
|
|
ADCD, |
|
|
dynamic_credit_score, |
|
|
dynamic_credit_score, |
|
|
qualification_category |
|
|
qualification_category,legal_representative |
|
|
FROM |
|
|
FROM |
|
|
bs_sgc_yxjd_qualifications q |
|
|
bs_sgc_yxjd_qualifications q |
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
@ -69,8 +71,11 @@ |
|
|
<if test="adcd!=null and adcd !=''"> |
|
|
<if test="adcd!=null and adcd !=''"> |
|
|
AND adcd =#{adcd} |
|
|
AND adcd =#{adcd} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="qualificationCategory!=null and qualificationCategory!=''"> |
|
|
|
|
|
AND q.qualification_category = #{qualificationCategory} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
AND q.qualification_category = #{qualificationCategory} |
|
|
|
|
|
ORDER BY |
|
|
ORDER BY |
|
|
CAST( dynamic_credit_score AS UNSIGNED ) DESC LIMIT #{pageNum},#{pageSize}; |
|
|
CAST( dynamic_credit_score AS UNSIGNED ) DESC LIMIT #{pageNum},#{pageSize}; |
|
|
</select> |
|
|
</select> |
|
@ -81,7 +86,7 @@ |
|
|
enterprise_name, |
|
|
enterprise_name, |
|
|
ADCD, |
|
|
ADCD, |
|
|
dynamic_credit_score, |
|
|
dynamic_credit_score, |
|
|
qualification_category |
|
|
qualification_category,legal_representative |
|
|
FROM |
|
|
FROM |
|
|
bs_sgc_yxjd_qualifications q |
|
|
bs_sgc_yxjd_qualifications q |
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
|
LEFT JOIN bs_sgc_yxjd_enterprise_info i ON q.enterprise_id = i.id |
|
@ -93,8 +98,10 @@ |
|
|
<if test="adcd!=null and adcd !=''"> |
|
|
<if test="adcd!=null and adcd !=''"> |
|
|
AND left(i.adcd,2)<> #{adcd} |
|
|
AND left(i.adcd,2)<> #{adcd} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="qualificationCategory!=null and qualificationCategory!=''"> |
|
|
|
|
|
AND q.qualification_category = #{qualificationCategory} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
AND q.qualification_category = #{qualificationCategory} |
|
|
|
|
|
ORDER BY |
|
|
ORDER BY |
|
|
CAST( dynamic_credit_score AS UNSIGNED ) DESC LIMIT #{pageNum},#{pageSize}; |
|
|
CAST( dynamic_credit_score AS UNSIGNED ) DESC LIMIT #{pageNum},#{pageSize}; |
|
|
</select> |
|
|
</select> |
|
@ -114,7 +121,7 @@ |
|
|
<if test="adcd!=null and adcd!='' and adcd!='省外'"> |
|
|
<if test="adcd!=null and adcd!='' and adcd!='省外'"> |
|
|
and adcd =#{adcd} |
|
|
and adcd =#{adcd} |
|
|
</if> |
|
|
</if> |
|
|
<if test="adcd!=null and adcd!='' and adcd = '省外'"> |
|
|
<if test="adcd!=null and adcd!='' and adcd == '省外'"> |
|
|
AND left(adcd,2)<> '44' |
|
|
AND left(adcd,2)<> '44' |
|
|
</if> |
|
|
</if> |
|
|
<if test="level !=null and level!=''"> |
|
|
<if test="level !=null and level!=''"> |
|
|