|
|
|
@ -3,13 +3,13 @@
|
|
|
|
|
<mapper namespace="com.sztzjy.digital_credit.mapper.StuCreditScoreMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.digital_credit.entity.StuCreditScore">
|
|
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
|
|
<result column="name_score" jdbcType="VARCHAR" property="nameScore" />
|
|
|
|
|
<result column="gender_score" jdbcType="VARCHAR" property="genderScore" />
|
|
|
|
|
<result column="age_score" jdbcType="VARCHAR" property="ageScore" />
|
|
|
|
|
<result column="marital_status_score" jdbcType="VARCHAR" property="maritalStatusScore" />
|
|
|
|
|
<result column="educational_level_score" jdbcType="VARCHAR" property="educationalLevelScore" />
|
|
|
|
|
<result column="driving_experience_score" jdbcType="VARCHAR" property="drivingExperienceScore" />
|
|
|
|
|
<result column="health_condition_score" jdbcType="VARCHAR" property="healthConditionScore" />
|
|
|
|
|
<result column="residence_time_score" jdbcType="TIMESTAMP" property="residenceTimeScore" />
|
|
|
|
|
<result column="residence_time_score" jdbcType="VARCHAR" property="residenceTimeScore" />
|
|
|
|
|
<result column="natural_conditions_score" jdbcType="VARCHAR" property="naturalConditionsScore" />
|
|
|
|
|
<result column="occupation_score" jdbcType="VARCHAR" property="occupationScore" />
|
|
|
|
|
<result column="years_in_current_company_score" jdbcType="VARCHAR" property="yearsInCurrentCompanyScore" />
|
|
|
|
@ -20,8 +20,8 @@
|
|
|
|
|
<result column="housing_situation_score" jdbcType="VARCHAR" property="housingSituationScore" />
|
|
|
|
|
<result column="net_asset_situation_score" jdbcType="VARCHAR" property="netAssetSituationScore" />
|
|
|
|
|
<result column="vehicle_condition_score" jdbcType="VARCHAR" property="vehicleConditionScore" />
|
|
|
|
|
<result column="monthly_income_of_households_score" jdbcType="VARCHAR" property="monthlyIncomeOfHouseholdsScore" />
|
|
|
|
|
<result column="monthly_fixed_expenditure_of_households_score" jdbcType="VARCHAR" property="monthlyFixedExpenditureOfHouseholdsScore" />
|
|
|
|
|
<result column="monthly_income_score" jdbcType="VARCHAR" property="monthlyIncomeScore" />
|
|
|
|
|
<result column="monthly_fixed_score" jdbcType="VARCHAR" property="monthlyFixedScore" />
|
|
|
|
|
<result column="debt_to_income_ratio" jdbcType="VARCHAR" property="debtToIncomeRatio" />
|
|
|
|
|
<result column="number_of_dependents_score" jdbcType="VARCHAR" property="numberOfDependentsScore" />
|
|
|
|
|
<result column="guarantee_support_score" jdbcType="VARCHAR" property="guaranteeSupportScore" />
|
|
|
|
@ -104,13 +104,13 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, name_score, age_score, marital_status_score, educational_level_score, driving_experience_score,
|
|
|
|
|
id, gender_score, age_score, marital_status_score, educational_level_score, driving_experience_score,
|
|
|
|
|
health_condition_score, residence_time_score, natural_conditions_score, occupation_score,
|
|
|
|
|
years_in_current_company_score, post_score, technical_title_score, personal_annual_income_score,
|
|
|
|
|
occupational_situation_score, housing_situation_score, net_asset_situation_score,
|
|
|
|
|
vehicle_condition_score, monthly_income_of_households_score, monthly_fixed_expenditure_of_households_score,
|
|
|
|
|
debt_to_income_ratio, number_of_dependents_score, guarantee_support_score, loan_history_score,
|
|
|
|
|
cardholder_status_score, relationship_with_banks_score, credit_history_score, personal_bad_reputation_score,
|
|
|
|
|
vehicle_condition_score, monthly_income_score, monthly_fixed_score, debt_to_income_ratio,
|
|
|
|
|
number_of_dependents_score, guarantee_support_score, loan_history_score, cardholder_status_score,
|
|
|
|
|
relationship_with_banks_score, credit_history_score, personal_bad_reputation_score,
|
|
|
|
|
personal_misconduct_or_records_score, tax_arrears_records_score, civil_judgment_or_enforcement_score,
|
|
|
|
|
social_security_and_provident_fund_payment_score, public_utility_payment_records_score,
|
|
|
|
|
practice_qualification_certificate_score, administrative_reward_score, adjustment_items_score,
|
|
|
|
@ -148,7 +148,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.digital_credit.entity.StuCreditScore">
|
|
|
|
|
insert into stu_credit_score (id, name_score, age_score,
|
|
|
|
|
insert into stu_credit_score (id, gender_score, age_score,
|
|
|
|
|
marital_status_score, educational_level_score,
|
|
|
|
|
driving_experience_score, health_condition_score,
|
|
|
|
|
residence_time_score, natural_conditions_score,
|
|
|
|
@ -156,7 +156,7 @@
|
|
|
|
|
post_score, technical_title_score, personal_annual_income_score,
|
|
|
|
|
occupational_situation_score, housing_situation_score,
|
|
|
|
|
net_asset_situation_score, vehicle_condition_score,
|
|
|
|
|
monthly_income_of_households_score, monthly_fixed_expenditure_of_households_score,
|
|
|
|
|
monthly_income_score, monthly_fixed_score,
|
|
|
|
|
debt_to_income_ratio, number_of_dependents_score,
|
|
|
|
|
guarantee_support_score, loan_history_score,
|
|
|
|
|
cardholder_status_score, relationship_with_banks_score,
|
|
|
|
@ -168,15 +168,15 @@
|
|
|
|
|
final_comprehensive_score, final_comprehensive_level,
|
|
|
|
|
user_id, creation_time, update_time,
|
|
|
|
|
submit_status)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{nameScore,jdbcType=VARCHAR}, #{ageScore,jdbcType=VARCHAR},
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{genderScore,jdbcType=VARCHAR}, #{ageScore,jdbcType=VARCHAR},
|
|
|
|
|
#{maritalStatusScore,jdbcType=VARCHAR}, #{educationalLevelScore,jdbcType=VARCHAR},
|
|
|
|
|
#{drivingExperienceScore,jdbcType=VARCHAR}, #{healthConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
#{residenceTimeScore,jdbcType=TIMESTAMP}, #{naturalConditionsScore,jdbcType=VARCHAR},
|
|
|
|
|
#{residenceTimeScore,jdbcType=VARCHAR}, #{naturalConditionsScore,jdbcType=VARCHAR},
|
|
|
|
|
#{occupationScore,jdbcType=VARCHAR}, #{yearsInCurrentCompanyScore,jdbcType=VARCHAR},
|
|
|
|
|
#{postScore,jdbcType=VARCHAR}, #{technicalTitleScore,jdbcType=VARCHAR}, #{personalAnnualIncomeScore,jdbcType=VARCHAR},
|
|
|
|
|
#{occupationalSituationScore,jdbcType=VARCHAR}, #{housingSituationScore,jdbcType=VARCHAR},
|
|
|
|
|
#{netAssetSituationScore,jdbcType=VARCHAR}, #{vehicleConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
#{monthlyIncomeOfHouseholdsScore,jdbcType=VARCHAR}, #{monthlyFixedExpenditureOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
#{monthlyIncomeScore,jdbcType=VARCHAR}, #{monthlyFixedScore,jdbcType=VARCHAR},
|
|
|
|
|
#{debtToIncomeRatio,jdbcType=VARCHAR}, #{numberOfDependentsScore,jdbcType=VARCHAR},
|
|
|
|
|
#{guaranteeSupportScore,jdbcType=VARCHAR}, #{loanHistoryScore,jdbcType=VARCHAR},
|
|
|
|
|
#{cardholderStatusScore,jdbcType=VARCHAR}, #{relationshipWithBanksScore,jdbcType=VARCHAR},
|
|
|
|
@ -195,8 +195,8 @@
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nameScore != null">
|
|
|
|
|
name_score,
|
|
|
|
|
<if test="genderScore != null">
|
|
|
|
|
gender_score,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ageScore != null">
|
|
|
|
|
age_score,
|
|
|
|
@ -246,11 +246,11 @@
|
|
|
|
|
<if test="vehicleConditionScore != null">
|
|
|
|
|
vehicle_condition_score,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyIncomeOfHouseholdsScore != null">
|
|
|
|
|
monthly_income_of_households_score,
|
|
|
|
|
<if test="monthlyIncomeScore != null">
|
|
|
|
|
monthly_income_score,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyFixedExpenditureOfHouseholdsScore != null">
|
|
|
|
|
monthly_fixed_expenditure_of_households_score,
|
|
|
|
|
<if test="monthlyFixedScore != null">
|
|
|
|
|
monthly_fixed_score,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="debtToIncomeRatio != null">
|
|
|
|
|
debt_to_income_ratio,
|
|
|
|
@ -323,8 +323,8 @@
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nameScore != null">
|
|
|
|
|
#{nameScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="genderScore != null">
|
|
|
|
|
#{genderScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ageScore != null">
|
|
|
|
|
#{ageScore,jdbcType=VARCHAR},
|
|
|
|
@ -342,7 +342,7 @@
|
|
|
|
|
#{healthConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="residenceTimeScore != null">
|
|
|
|
|
#{residenceTimeScore,jdbcType=TIMESTAMP},
|
|
|
|
|
#{residenceTimeScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="naturalConditionsScore != null">
|
|
|
|
|
#{naturalConditionsScore,jdbcType=VARCHAR},
|
|
|
|
@ -374,11 +374,11 @@
|
|
|
|
|
<if test="vehicleConditionScore != null">
|
|
|
|
|
#{vehicleConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyIncomeOfHouseholdsScore != null">
|
|
|
|
|
#{monthlyIncomeOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="monthlyIncomeScore != null">
|
|
|
|
|
#{monthlyIncomeScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyFixedExpenditureOfHouseholdsScore != null">
|
|
|
|
|
#{monthlyFixedExpenditureOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="monthlyFixedScore != null">
|
|
|
|
|
#{monthlyFixedScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="debtToIncomeRatio != null">
|
|
|
|
|
#{debtToIncomeRatio,jdbcType=VARCHAR},
|
|
|
|
@ -460,8 +460,8 @@
|
|
|
|
|
<if test="record.id != null">
|
|
|
|
|
id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.nameScore != null">
|
|
|
|
|
name_score = #{record.nameScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="record.genderScore != null">
|
|
|
|
|
gender_score = #{record.genderScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.ageScore != null">
|
|
|
|
|
age_score = #{record.ageScore,jdbcType=VARCHAR},
|
|
|
|
@ -479,7 +479,7 @@
|
|
|
|
|
health_condition_score = #{record.healthConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.residenceTimeScore != null">
|
|
|
|
|
residence_time_score = #{record.residenceTimeScore,jdbcType=TIMESTAMP},
|
|
|
|
|
residence_time_score = #{record.residenceTimeScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.naturalConditionsScore != null">
|
|
|
|
|
natural_conditions_score = #{record.naturalConditionsScore,jdbcType=VARCHAR},
|
|
|
|
@ -511,11 +511,11 @@
|
|
|
|
|
<if test="record.vehicleConditionScore != null">
|
|
|
|
|
vehicle_condition_score = #{record.vehicleConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.monthlyIncomeOfHouseholdsScore != null">
|
|
|
|
|
monthly_income_of_households_score = #{record.monthlyIncomeOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="record.monthlyIncomeScore != null">
|
|
|
|
|
monthly_income_score = #{record.monthlyIncomeScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.monthlyFixedExpenditureOfHouseholdsScore != null">
|
|
|
|
|
monthly_fixed_expenditure_of_households_score = #{record.monthlyFixedExpenditureOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="record.monthlyFixedScore != null">
|
|
|
|
|
monthly_fixed_score = #{record.monthlyFixedScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.debtToIncomeRatio != null">
|
|
|
|
|
debt_to_income_ratio = #{record.debtToIncomeRatio,jdbcType=VARCHAR},
|
|
|
|
@ -591,13 +591,13 @@
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update stu_credit_score
|
|
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
name_score = #{record.nameScore,jdbcType=VARCHAR},
|
|
|
|
|
gender_score = #{record.genderScore,jdbcType=VARCHAR},
|
|
|
|
|
age_score = #{record.ageScore,jdbcType=VARCHAR},
|
|
|
|
|
marital_status_score = #{record.maritalStatusScore,jdbcType=VARCHAR},
|
|
|
|
|
educational_level_score = #{record.educationalLevelScore,jdbcType=VARCHAR},
|
|
|
|
|
driving_experience_score = #{record.drivingExperienceScore,jdbcType=VARCHAR},
|
|
|
|
|
health_condition_score = #{record.healthConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
residence_time_score = #{record.residenceTimeScore,jdbcType=TIMESTAMP},
|
|
|
|
|
residence_time_score = #{record.residenceTimeScore,jdbcType=VARCHAR},
|
|
|
|
|
natural_conditions_score = #{record.naturalConditionsScore,jdbcType=VARCHAR},
|
|
|
|
|
occupation_score = #{record.occupationScore,jdbcType=VARCHAR},
|
|
|
|
|
years_in_current_company_score = #{record.yearsInCurrentCompanyScore,jdbcType=VARCHAR},
|
|
|
|
@ -608,8 +608,8 @@
|
|
|
|
|
housing_situation_score = #{record.housingSituationScore,jdbcType=VARCHAR},
|
|
|
|
|
net_asset_situation_score = #{record.netAssetSituationScore,jdbcType=VARCHAR},
|
|
|
|
|
vehicle_condition_score = #{record.vehicleConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
monthly_income_of_households_score = #{record.monthlyIncomeOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
monthly_fixed_expenditure_of_households_score = #{record.monthlyFixedExpenditureOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
monthly_income_score = #{record.monthlyIncomeScore,jdbcType=VARCHAR},
|
|
|
|
|
monthly_fixed_score = #{record.monthlyFixedScore,jdbcType=VARCHAR},
|
|
|
|
|
debt_to_income_ratio = #{record.debtToIncomeRatio,jdbcType=VARCHAR},
|
|
|
|
|
number_of_dependents_score = #{record.numberOfDependentsScore,jdbcType=VARCHAR},
|
|
|
|
|
guarantee_support_score = #{record.guaranteeSupportScore,jdbcType=VARCHAR},
|
|
|
|
@ -639,8 +639,8 @@
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.digital_credit.entity.StuCreditScore">
|
|
|
|
|
update stu_credit_score
|
|
|
|
|
<set>
|
|
|
|
|
<if test="nameScore != null">
|
|
|
|
|
name_score = #{nameScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="genderScore != null">
|
|
|
|
|
gender_score = #{genderScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ageScore != null">
|
|
|
|
|
age_score = #{ageScore,jdbcType=VARCHAR},
|
|
|
|
@ -658,7 +658,7 @@
|
|
|
|
|
health_condition_score = #{healthConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="residenceTimeScore != null">
|
|
|
|
|
residence_time_score = #{residenceTimeScore,jdbcType=TIMESTAMP},
|
|
|
|
|
residence_time_score = #{residenceTimeScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="naturalConditionsScore != null">
|
|
|
|
|
natural_conditions_score = #{naturalConditionsScore,jdbcType=VARCHAR},
|
|
|
|
@ -690,11 +690,11 @@
|
|
|
|
|
<if test="vehicleConditionScore != null">
|
|
|
|
|
vehicle_condition_score = #{vehicleConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyIncomeOfHouseholdsScore != null">
|
|
|
|
|
monthly_income_of_households_score = #{monthlyIncomeOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="monthlyIncomeScore != null">
|
|
|
|
|
monthly_income_score = #{monthlyIncomeScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyFixedExpenditureOfHouseholdsScore != null">
|
|
|
|
|
monthly_fixed_expenditure_of_households_score = #{monthlyFixedExpenditureOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
<if test="monthlyFixedScore != null">
|
|
|
|
|
monthly_fixed_score = #{monthlyFixedScore,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="debtToIncomeRatio != null">
|
|
|
|
|
debt_to_income_ratio = #{debtToIncomeRatio,jdbcType=VARCHAR},
|
|
|
|
@ -767,13 +767,13 @@
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.digital_credit.entity.StuCreditScore">
|
|
|
|
|
update stu_credit_score
|
|
|
|
|
set name_score = #{nameScore,jdbcType=VARCHAR},
|
|
|
|
|
set gender_score = #{genderScore,jdbcType=VARCHAR},
|
|
|
|
|
age_score = #{ageScore,jdbcType=VARCHAR},
|
|
|
|
|
marital_status_score = #{maritalStatusScore,jdbcType=VARCHAR},
|
|
|
|
|
educational_level_score = #{educationalLevelScore,jdbcType=VARCHAR},
|
|
|
|
|
driving_experience_score = #{drivingExperienceScore,jdbcType=VARCHAR},
|
|
|
|
|
health_condition_score = #{healthConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
residence_time_score = #{residenceTimeScore,jdbcType=TIMESTAMP},
|
|
|
|
|
residence_time_score = #{residenceTimeScore,jdbcType=VARCHAR},
|
|
|
|
|
natural_conditions_score = #{naturalConditionsScore,jdbcType=VARCHAR},
|
|
|
|
|
occupation_score = #{occupationScore,jdbcType=VARCHAR},
|
|
|
|
|
years_in_current_company_score = #{yearsInCurrentCompanyScore,jdbcType=VARCHAR},
|
|
|
|
@ -784,8 +784,8 @@
|
|
|
|
|
housing_situation_score = #{housingSituationScore,jdbcType=VARCHAR},
|
|
|
|
|
net_asset_situation_score = #{netAssetSituationScore,jdbcType=VARCHAR},
|
|
|
|
|
vehicle_condition_score = #{vehicleConditionScore,jdbcType=VARCHAR},
|
|
|
|
|
monthly_income_of_households_score = #{monthlyIncomeOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
monthly_fixed_expenditure_of_households_score = #{monthlyFixedExpenditureOfHouseholdsScore,jdbcType=VARCHAR},
|
|
|
|
|
monthly_income_score = #{monthlyIncomeScore,jdbcType=VARCHAR},
|
|
|
|
|
monthly_fixed_score = #{monthlyFixedScore,jdbcType=VARCHAR},
|
|
|
|
|
debt_to_income_ratio = #{debtToIncomeRatio,jdbcType=VARCHAR},
|
|
|
|
|
number_of_dependents_score = #{numberOfDependentsScore,jdbcType=VARCHAR},
|
|
|
|
|
guarantee_support_score = #{guaranteeSupportScore,jdbcType=VARCHAR},
|
|
|
|
|