|
@@ -425,7 +425,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
- <update id="updateLoanApplication" parameterType="LoanApplication">
|
|
|
+ <update id="updateLoanApplication2" parameterType="LoanApplication">
|
|
|
update loan_application
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="loanApplicationNumber != null">loan_application_number = #{loanApplicationNumber},</if>
|
|
@@ -504,6 +504,85 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
where loan_application_id = #{loanApplicationId}
|
|
|
</update>
|
|
|
+ <update id="updateLoanApplication" parameterType="LoanApplication">
|
|
|
+ update loan_application
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="loanApplicationNumber != null">loan_application_number = #{loanApplicationNumber},</if>
|
|
|
+ <if test="applicationType != null and applicationType != ''">application_type = #{applicationType},</if>
|
|
|
+ <if test="applicationAmount != null">application_amount = #{applicationAmount},</if>
|
|
|
+ <if test="actuallyAmount != null">actually_amount = #{actuallyAmount},</if>
|
|
|
+ <if test="applicationBank != null and applicationBank != ''">application_bank = #{applicationBank},</if>
|
|
|
+ <if test="usagePeriod != null and usagePeriod != ''">usage_period = #{usagePeriod},</if>
|
|
|
+ <if test="purposeFunds != null and purposeFunds != ''">purpose_funds = #{purposeFunds},</if>
|
|
|
+ <if test="repaymentSource != null and repaymentSource != ''">repayment_source = #{repaymentSource},</if>
|
|
|
+ <if test="enterpriseId != null and enterpriseId != ''">enterprise_id = #{enterpriseId},</if>
|
|
|
+ <if test="enterpriseName != null and enterpriseName != ''">enterprise_name = #{enterpriseName},</if>
|
|
|
+ <if test="categoryType != null and categoryType != ''">category_type = #{categoryType},</if>
|
|
|
+ <if test="isMake != null">is_make = #{isMake},</if>
|
|
|
+ <if test="isNew != null">is_new = #{isNew},</if>
|
|
|
+ <if test="isSmall != null">is_small = #{isSmall},</if>
|
|
|
+ <if test="isDuty != null">is_duty = #{isDuty},</if>
|
|
|
+ <if test="companyIntroduction != null">company_introduction = #{companyIntroduction},</if>
|
|
|
+ <if test="customerType != null and customerType != ''">customer_type = #{customerType},</if>
|
|
|
+ <if test="corporationFront != null and corporationFront != ''">corporation_front = #{corporationFront},</if>
|
|
|
+ <if test="corporationBack != null and corporationBack != ''">corporation_back = #{corporationBack},</if>
|
|
|
+ <if test="corporationName != null and corporationName != ''">corporation_name = #{corporationName},</if>
|
|
|
+ <if test="corporationIdCard != null and corporationIdCard != ''">corporation_id_card = #{corporationIdCard},</if>
|
|
|
+ <if test="corporationPhone != null and corporationPhone != ''">corporation_phone = #{corporationPhone},</if>
|
|
|
+ <if test="corporationAddress != null and corporationAddress != ''">corporation_address = #{corporationAddress},</if>
|
|
|
+ <if test="corporationExpirationDate != null and corporationExpirationDate != ''">corporation_expiration_date = #{corporationExpirationDate},</if>
|
|
|
+ <if test="familyPopulation != null and familyPopulation != ''">family_population = #{familyPopulation},</if>
|
|
|
+ <if test="corporationJob != null and corporationJob != ''">corporation_job = #{corporationJob},</if>
|
|
|
+ <if test="isLoan != null">is_loan = #{isLoan},</if>
|
|
|
+ <if test="receivablePay != null">receivable_pay = #{receivablePay},</if>
|
|
|
+ <if test="businessSituation != null">business_situation = #{businessSituation},</if>
|
|
|
+ <if test="businessEfficiency != null">business_efficiency = #{businessEfficiency},</if>
|
|
|
+ <if test="corporationMaritalStatus != null">corporation_marital_status = #{corporationMaritalStatus},</if>
|
|
|
+ <if test="spouseFront != null and spouseFront != ''">spouse_front = #{spouseFront},</if>
|
|
|
+ <if test="spouseBack != null and spouseBack != ''">spouse_back = #{spouseBack},</if>
|
|
|
+ <if test="spouseName != null and spouseName != ''">spouse_name = #{spouseName},</if>
|
|
|
+ <if test="spouseIdCard != null and spouseIdCard != ''">spouse_id_card = #{spouseIdCard},</if>
|
|
|
+ <if test="spousePhone != null and spousePhone != ''">spouse_phone = #{spousePhone},</if>
|
|
|
+ <if test="guaranteeType != null and guaranteeType != ''">guarantee_type = #{guaranteeType},</if>
|
|
|
+ <if test="guaranteeFront != null and guaranteeFront != ''">guarantee_front = #{guaranteeFront},</if>
|
|
|
+ <if test="guaranteeBack != null and guaranteeBack != ''">guarantee_back = #{guaranteeBack},</if>
|
|
|
+ <if test="guaranteeName != null and guaranteeName != ''">guarantee_name = #{guaranteeName},</if>
|
|
|
+ <if test="guaranteeIdCard != null and guaranteeIdCard != ''">guarantee_id_card = #{guaranteeIdCard},</if>
|
|
|
+ <if test="guaranteePhone != null and guaranteePhone != ''">guarantee_phone = #{guaranteePhone},</if>
|
|
|
+ <if test="guaranteeMaritalStatus != null">guarantee_marital_status = #{guaranteeMaritalStatus},</if>
|
|
|
+ <if test="guaranteeSpouseFront != null and guaranteeSpouseFront != ''">guarantee_spouse_front = #{guaranteeSpouseFront},</if>
|
|
|
+ <if test="guaranteeSpouseBack != null and guaranteeSpouseBack != ''">guarantee_spouse_back = #{guaranteeSpouseBack},</if>
|
|
|
+ <if test="guaranteeSpouseName != null and guaranteeSpouseName != ''">guarantee_spouse_name = #{guaranteeSpouseName},</if>
|
|
|
+ <if test="guaranteeSpouseIdCard != null and guaranteeSpouseIdCard != ''">guarantee_spouse_id_card = #{guaranteeSpouseIdCard},</if>
|
|
|
+ <if test="guaranteeSpousePhone != null and guaranteeSpousePhone != ''">guarantee_spouse_phone = #{guaranteeSpousePhone},</if>
|
|
|
+ <if test="guaranteeShareholderName != null and guaranteeShareholderName != ''">guarantee_shareholder_name = #{guaranteeShareholderName},</if>
|
|
|
+ <if test="guaranteeShareholderIdCard != null and guaranteeShareholderIdCard != ''">guarantee_shareholder_id_card = #{guaranteeShareholderIdCard},</if>
|
|
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
|
+ <if test="idCard != null">id_card = #{idCard},</if>
|
|
|
+ <if test="applicationTime != null">application_time = #{applicationTime},</if>
|
|
|
+ <if test="fileTime != null">file_time = #{fileTime},</if>
|
|
|
+ <if test="reviewTime != null">review_time = #{reviewTime},</if>
|
|
|
+ <if test="loanSchedule != null and loanSchedule != ''">loan_schedule = #{loanSchedule},</if>
|
|
|
+ <if test="auditSchedule != null and auditSchedule != ''">audit_schedule = #{auditSchedule},</if>
|
|
|
+ <if test="auditType != null and auditType != ''">audit_type = #{auditType},</if>
|
|
|
+ <if test="loanApplicationType != null and loanApplicationType != ''">loan_application_type = #{loanApplicationType},</if>
|
|
|
+ <if test="reviewSchedule != null and reviewSchedule != ''">review_schedule = #{reviewSchedule},</if>
|
|
|
+ <if test="rejectionReason != null and rejectionReason != ''">rejection_reason = #{rejectionReason},</if>
|
|
|
+ <if test="aUserId != null">a_user_id = #{aUserId},</if>
|
|
|
+ <if test="aUserName != null">a_user_name = #{aUserName},</if>
|
|
|
+ <if test="aAuthorize != null and aAuthorize != ''">a_authorize = #{aAuthorize},</if>
|
|
|
+ <if test="bUserId != null">b_user_id = #{bUserId},</if>
|
|
|
+ <if test="bUserName != null">b_user_name = #{bUserName},</if>
|
|
|
+ <if test="fUserId != null">f_user_id = #{fUserId},</if>
|
|
|
+ <if test="fUserName != null">f_user_name = #{fUserName},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ update_time = sysdate(),
|
|
|
+ </trim>
|
|
|
+ where loan_application_id = #{loanApplicationId}
|
|
|
+ </update>
|
|
|
|
|
|
<delete id="deleteLoanApplicationByLoanApplicationId" parameterType="Long">
|
|
|
delete from loan_application where loan_application_id = #{loanApplicationId}
|