|
@@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="applicationType" column="application_type" />
|
|
<result property="applicationType" column="application_type" />
|
|
<result property="applicationAmount" column="application_amount" />
|
|
<result property="applicationAmount" column="application_amount" />
|
|
<result property="actuallyAmount" column="actually_amount" />
|
|
<result property="actuallyAmount" column="actually_amount" />
|
|
|
|
+ <result property="actuallyTime" column="actually_time" />
|
|
<result property="applicationBank" column="application_bank" />
|
|
<result property="applicationBank" column="application_bank" />
|
|
<result property="usagePeriod" column="usage_period" />
|
|
<result property="usagePeriod" column="usage_period" />
|
|
<result property="purposeFunds" column="purpose_funds" />
|
|
<result property="purposeFunds" column="purpose_funds" />
|
|
@@ -67,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="loanApplicationType" column="loan_application_type" />
|
|
<result property="loanApplicationType" column="loan_application_type" />
|
|
<result property="reviewSchedule" column="review_schedule" />
|
|
<result property="reviewSchedule" column="review_schedule" />
|
|
<result property="rejectionReason" column="rejection_reason" />
|
|
<result property="rejectionReason" column="rejection_reason" />
|
|
|
|
+ <result property="loanAfterType" column="loan_after_type" />
|
|
<result property="aUserId" column="a_user_id" />
|
|
<result property="aUserId" column="a_user_id" />
|
|
<result property="aUserName" column="a_user_name" />
|
|
<result property="aUserName" column="a_user_name" />
|
|
<result property="aAuthorize" column="a_authorize" />
|
|
<result property="aAuthorize" column="a_authorize" />
|
|
@@ -82,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLoanApplicationVo">
|
|
<sql id="selectLoanApplicationVo">
|
|
- select loan_application_id, loan_application_number, application_type,application_amount,actually_amount,enterprise_id,guarantee_shareholder_name,guarantee_shareholder_id_card, application_bank, usage_period, purpose_funds, repayment_source, enterprise_name, category_type, is_make, is_new, is_small, is_duty, company_introduction, customer_type, corporation_front, corporation_back, corporation_name, corporation_id_card, corporation_phone,corporation_address,corporation_expiration_date, family_population, corporation_job, is_loan, receivable_pay, business_situation, business_efficiency, corporation_marital_status, spouse_front, spouse_back, spouse_name, spouse_id_card, spouse_phone, guarantee_type, guarantee_front, guarantee_back, guarantee_name, guarantee_id_card, guarantee_phone, guarantee_marital_status, guarantee_spouse_front, guarantee_spouse_back, guarantee_spouse_name, guarantee_spouse_id_card, guarantee_spouse_phone, user_id, id_card, application_time, file_time,review_time, loan_schedule, audit_schedule, audit_type, loan_application_type,review_schedule,rejection_reason, a_user_id, a_user_name,a_authorize, b_user_id, b_user_name,f_user_id, f_user_name, create_by, create_time, update_by, update_time, remark from loan_application
|
|
|
|
|
|
+ select loan_application_id, loan_application_number, application_type,application_amount,actually_amount,actually_time,enterprise_id,guarantee_shareholder_name,guarantee_shareholder_id_card, application_bank, usage_period, purpose_funds, repayment_source, enterprise_name, category_type, is_make, is_new, is_small, is_duty, company_introduction, customer_type, corporation_front, corporation_back, corporation_name, corporation_id_card, corporation_phone,corporation_address,corporation_expiration_date, family_population, corporation_job, is_loan, receivable_pay, business_situation, business_efficiency, corporation_marital_status, spouse_front, spouse_back, spouse_name, spouse_id_card, spouse_phone, guarantee_type, guarantee_front, guarantee_back, guarantee_name, guarantee_id_card, guarantee_phone, guarantee_marital_status, guarantee_spouse_front, guarantee_spouse_back, guarantee_spouse_name, guarantee_spouse_id_card, guarantee_spouse_phone, user_id, id_card, application_time, file_time,review_time, loan_schedule, audit_schedule, audit_type, loan_application_type,review_schedule,rejection_reason,loan_after_type, a_user_id, a_user_name,a_authorize, b_user_id, b_user_name,f_user_id, f_user_name, create_by, create_time, update_by, update_time, remark from loan_application
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectLoanApplicationList" parameterType="LoanApplication" resultMap="LoanApplicationResult">
|
|
<select id="selectLoanApplicationList" parameterType="LoanApplication" resultMap="LoanApplicationResult">
|
|
@@ -91,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="loanApplicationNumber != null and loanApplicationNumber != ''"> and loan_application_number = #{loanApplicationNumber}</if>
|
|
<if test="loanApplicationNumber != null and loanApplicationNumber != ''"> and loan_application_number = #{loanApplicationNumber}</if>
|
|
<if test="applicationAmount != null "> and application_amount = #{applicationAmount}</if>
|
|
<if test="applicationAmount != null "> and application_amount = #{applicationAmount}</if>
|
|
<if test="actuallyAmount != null "> and actually_amount = #{actuallyAmount}</if>
|
|
<if test="actuallyAmount != null "> and actually_amount = #{actuallyAmount}</if>
|
|
|
|
+ <if test="actuallyTime != null "> and actually_time = #{actuallyTime}</if>
|
|
<if test="applicationType != null and applicationType != ''"> and application_type = #{applicationType}</if>
|
|
<if test="applicationType != null and applicationType != ''"> and application_type = #{applicationType}</if>
|
|
<if test="applicationBank != null and applicationBank != ''"> and application_bank = #{applicationBank}</if>
|
|
<if test="applicationBank != null and applicationBank != ''"> and application_bank = #{applicationBank}</if>
|
|
<if test="usagePeriod != null and usagePeriod != ''"> and usage_period = #{usagePeriod}</if>
|
|
<if test="usagePeriod != null and usagePeriod != ''"> and usage_period = #{usagePeriod}</if>
|
|
@@ -143,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="auditType != null and auditType != ''"> and audit_type = #{auditType}</if>
|
|
<if test="auditType != null and auditType != ''"> and audit_type = #{auditType}</if>
|
|
<if test="loanApplicationType != null and loanApplicationType != ''"> and loan_application_type = #{loanApplicationType}</if>
|
|
<if test="loanApplicationType != null and loanApplicationType != ''"> and loan_application_type = #{loanApplicationType}</if>
|
|
<if test="reviewSchedule != null and reviewSchedule != ''"> and review_schedule = #{reviewSchedule}</if>
|
|
<if test="reviewSchedule != null and reviewSchedule != ''"> and review_schedule = #{reviewSchedule}</if>
|
|
|
|
+ <if test="loanAfterType != null and loanAfterType != ''"> and loan_after_type = #{loanAfterType}</if>
|
|
<if test="userId != null "> and (a_user_id = #{userId} or (b_user_id = #{userId} and audit_schedule = '3') or user_id = #{userId} or f_user_id = #{userId})</if>
|
|
<if test="userId != null "> and (a_user_id = #{userId} or (b_user_id = #{userId} and audit_schedule = '3') or user_id = #{userId} or f_user_id = #{userId})</if>
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
AND date_format(create_time,'%Y') = #{params.beginTime}
|
|
AND date_format(create_time,'%Y') = #{params.beginTime}
|
|
@@ -151,6 +155,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
order by create_time DESC
|
|
order by create_time DESC
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectLoanAfterList" parameterType="LoanApplication" resultMap="LoanApplicationResult">
|
|
|
|
+ <include refid="selectLoanApplicationVo"/>
|
|
|
|
+ <where> (#{actuallyTime}>DATE_ADD(actually_time,INTERVAL 30 DAY)
|
|
|
|
+ or #{actuallyTime}>DATE_ADD(actually_time,INTERVAL 180 DAY))
|
|
|
|
+ <if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
|
|
|
+ <if test="loanAfterType != null and loanAfterType != ''"> and loan_after_type = #{loanAfterType}</if>
|
|
|
|
+ </where>
|
|
|
|
+ order by create_time DESC
|
|
|
|
+ </select>
|
|
<select id="selectLoanApplicationListStatistics" parameterType="LoanApplication" resultMap="LoanApplicationResult">
|
|
<select id="selectLoanApplicationListStatistics" parameterType="LoanApplication" resultMap="LoanApplicationResult">
|
|
<include refid="selectLoanApplicationVo"/>
|
|
<include refid="selectLoanApplicationVo"/>
|
|
<where>
|
|
<where>
|
|
@@ -278,6 +291,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="applicationType != null and applicationType != ''">application_type,</if>
|
|
<if test="applicationType != null and applicationType != ''">application_type,</if>
|
|
<if test="applicationAmount != null">application_amount,</if>
|
|
<if test="applicationAmount != null">application_amount,</if>
|
|
<if test="actuallyAmount != null">actually_amount,</if>
|
|
<if test="actuallyAmount != null">actually_amount,</if>
|
|
|
|
+ <if test="actuallyTime != null">actually_time,</if>
|
|
<if test="applicationBank != null and applicationBank != ''">application_bank,</if>
|
|
<if test="applicationBank != null and applicationBank != ''">application_bank,</if>
|
|
<if test="usagePeriod != null and usagePeriod != ''">usage_period,</if>
|
|
<if test="usagePeriod != null and usagePeriod != ''">usage_period,</if>
|
|
<if test="purposeFunds != null and purposeFunds != ''">purpose_funds,</if>
|
|
<if test="purposeFunds != null and purposeFunds != ''">purpose_funds,</if>
|
|
@@ -335,6 +349,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="loanApplicationType != null and loanApplicationType != ''">loan_application_type,</if>
|
|
<if test="loanApplicationType != null and loanApplicationType != ''">loan_application_type,</if>
|
|
<if test="reviewSchedule != null and reviewSchedule != ''">review_schedule,</if>
|
|
<if test="reviewSchedule != null and reviewSchedule != ''">review_schedule,</if>
|
|
<if test="rejectionReason != null and rejectionReason != ''">rejection_reason,</if>
|
|
<if test="rejectionReason != null and rejectionReason != ''">rejection_reason,</if>
|
|
|
|
+ <if test="loanAfterType != null and loanAfterType != ''">loan_after_type,</if>
|
|
<if test="aUserId != null">a_user_id,</if>
|
|
<if test="aUserId != null">a_user_id,</if>
|
|
<if test="aUserName != null">a_user_name,</if>
|
|
<if test="aUserName != null">a_user_name,</if>
|
|
<if test="aAuthorize != null and aAuthorize != ''">a_authorize,</if>
|
|
<if test="aAuthorize != null and aAuthorize != ''">a_authorize,</if>
|
|
@@ -353,6 +368,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="applicationType != null and applicationType != ''">#{applicationType},</if>
|
|
<if test="applicationType != null and applicationType != ''">#{applicationType},</if>
|
|
<if test="applicationAmount != null">#{applicationAmount},</if>
|
|
<if test="applicationAmount != null">#{applicationAmount},</if>
|
|
<if test="actuallyAmount != null">#{actuallyAmount},</if>
|
|
<if test="actuallyAmount != null">#{actuallyAmount},</if>
|
|
|
|
+ <if test="actuallyTime != null">#{actuallyTime},</if>
|
|
<if test="applicationBank != null and applicationBank != ''">#{applicationBank},</if>
|
|
<if test="applicationBank != null and applicationBank != ''">#{applicationBank},</if>
|
|
<if test="usagePeriod != null and usagePeriod != ''">#{usagePeriod},</if>
|
|
<if test="usagePeriod != null and usagePeriod != ''">#{usagePeriod},</if>
|
|
<if test="purposeFunds != null and purposeFunds != ''">#{purposeFunds},</if>
|
|
<if test="purposeFunds != null and purposeFunds != ''">#{purposeFunds},</if>
|
|
@@ -410,6 +426,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="loanApplicationType != null and loanApplicationType != ''">#{loanApplicationType},</if>
|
|
<if test="loanApplicationType != null and loanApplicationType != ''">#{loanApplicationType},</if>
|
|
<if test="reviewSchedule != null and reviewSchedule != ''">#{reviewSchedule},</if>
|
|
<if test="reviewSchedule != null and reviewSchedule != ''">#{reviewSchedule},</if>
|
|
<if test="rejectionReason != null and rejectionReason != ''">#{rejectionReason},</if>
|
|
<if test="rejectionReason != null and rejectionReason != ''">#{rejectionReason},</if>
|
|
|
|
+ <if test="loanAfterType != null and loanAfterType != ''">#{loanAfterType},</if>
|
|
<if test="aUserId != null">#{aUserId},</if>
|
|
<if test="aUserId != null">#{aUserId},</if>
|
|
<if test="aUserName != null">#{aUserName},</if>
|
|
<if test="aUserName != null">#{aUserName},</if>
|
|
<if test="aAuthorize != null and aAuthorize != ''">#{aAuthorize},</if>
|
|
<if test="aAuthorize != null and aAuthorize != ''">#{aAuthorize},</if>
|
|
@@ -432,6 +449,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="applicationType != null and applicationType != ''">application_type = #{applicationType},</if>
|
|
<if test="applicationType != null and applicationType != ''">application_type = #{applicationType},</if>
|
|
<if test="applicationAmount != null">application_amount = #{applicationAmount},</if>
|
|
<if test="applicationAmount != null">application_amount = #{applicationAmount},</if>
|
|
<if test="actuallyAmount != null">actually_amount = #{actuallyAmount},</if>
|
|
<if test="actuallyAmount != null">actually_amount = #{actuallyAmount},</if>
|
|
|
|
+ <if test="actuallyTime != null">actually_time = #{actuallyTime},</if>
|
|
<if test="applicationBank != null and applicationBank != ''">application_bank = #{applicationBank},</if>
|
|
<if test="applicationBank != null and applicationBank != ''">application_bank = #{applicationBank},</if>
|
|
<if test="usagePeriod != null and usagePeriod != ''">usage_period = #{usagePeriod},</if>
|
|
<if test="usagePeriod != null and usagePeriod != ''">usage_period = #{usagePeriod},</if>
|
|
<if test="purposeFunds != null and purposeFunds != ''">purpose_funds = #{purposeFunds},</if>
|
|
<if test="purposeFunds != null and purposeFunds != ''">purpose_funds = #{purposeFunds},</if>
|
|
@@ -489,6 +507,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="loanApplicationType != null and loanApplicationType != ''">loan_application_type = #{loanApplicationType},</if>
|
|
<if test="loanApplicationType != null and loanApplicationType != ''">loan_application_type = #{loanApplicationType},</if>
|
|
<if test="reviewSchedule != null and reviewSchedule != ''">review_schedule = #{reviewSchedule},</if>
|
|
<if test="reviewSchedule != null and reviewSchedule != ''">review_schedule = #{reviewSchedule},</if>
|
|
<if test="rejectionReason != null and rejectionReason != ''">rejection_reason = #{rejectionReason},</if>
|
|
<if test="rejectionReason != null and rejectionReason != ''">rejection_reason = #{rejectionReason},</if>
|
|
|
|
+ <if test="loanAfterType != null and loanAfterType != ''">loan_after_type = #{loanAfterType},</if>
|
|
<if test="aUserId != -1">a_user_id = #{aUserId},</if>
|
|
<if test="aUserId != -1">a_user_id = #{aUserId},</if>
|
|
<if test="aUserName != null">a_user_name = #{aUserName},</if>
|
|
<if test="aUserName != null">a_user_name = #{aUserName},</if>
|
|
<if test="aAuthorize != null and aAuthorize != ''">a_authorize = #{aAuthorize},</if>
|
|
<if test="aAuthorize != null and aAuthorize != ''">a_authorize = #{aAuthorize},</if>
|