Commit 99be23c7 authored by 陈宏杰's avatar 陈宏杰

映射出错

parent 919f020f
......@@ -24,4 +24,6 @@ public interface LoanInfoDbMapper {
void batchSaveLoanInfoRecordLog(List<LoanInfoZhuDai> list);
List<LoanInfoZhuDai> findByLoanId(String loanId);
}
......@@ -4,26 +4,26 @@
<resultMap id="LoanInfoResultMap" type="cn.quantgroup.report.domain.baihang.LoanInfoZhuDai">
<result column="recordId" jdbcType="VARCHAR" property="record_id"/>
<result column="reqID" jdbcType="VARCHAR" property="req_id"/>
<result column="opCode" jdbcType="VARCHAR" property="op_Code"/>
<result column="uploadTs" jdbcType="VARCHAR" property="upload_ts"/>
<result column="record_id" jdbcType="VARCHAR" property="recordId"/>
<result column="req_id" jdbcType="VARCHAR" property="reqID"/>
<result column="op_Code" jdbcType="VARCHAR" property="opCode"/>
<result column="upload_ts" jdbcType="VARCHAR" property="uploadTs"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="pid" jdbcType="VARCHAR" property="pid"/>
<result column="mobile" jdbcType="VARCHAR" property="mobile"/>
<result column="loanId" jdbcType="VARCHAR" property="loan_id"/>
<result column="guaranteeType" jdbcType="INTEGER" property="guarantee_type"/>
<result column="loanPurpose" jdbcType="INTEGER" property="loan_purpose"/>
<result column="applyDate" jdbcType="VARCHAR" property="apply_date"/>
<result column="accountOpenDate" jdbcType="VARCHAR" property="account_open_date"/>
<result column="issueDate" jdbcType="VARCHAR" property="issue_date"/>
<result column="dueDate" jdbcType="VARCHAR" property="due_date"/>
<result column="loanAmount" jdbcType="DECIMAL" property="loan_amount"/>
<result column="totalTerm" jdbcType="INTEGER" property="total_term"/>
<result column="targetRepayDateType" jdbcType="INTEGER" property="target_repay_date_type"/>
<result column="termPeriod" jdbcType="INTEGER" property="term_period"/>
<result column="firstRepaymentDate" jdbcType="VARCHAR" property="first_repayment_date"/>
<result column="gracePeriod" jdbcType="INTEGER" property="grace_period"/>
<result column="loan_id" jdbcType="VARCHAR" property="loanId"/>
<result column="guarantee_type" jdbcType="INTEGER" property="guaranteeType"/>
<result column="loan_purpose" jdbcType="INTEGER" property="loanPurpose"/>
<result column="apply_date" jdbcType="VARCHAR" property="applyDate"/>
<result column="account_open_date" jdbcType="VARCHAR" property="accountOpenDate"/>
<result column="issue_date" jdbcType="VARCHAR" property="issueDate"/>
<result column="due_date" jdbcType="VARCHAR" property="dueDate"/>
<result column="loan_amount" jdbcType="DECIMAL" property="loanAmount"/>
<result column="total_term" jdbcType="INTEGER" property="totalTerm"/>
<result column="target_repay_date_type" jdbcType="INTEGER" property="targetRepayDateType"/>
<result column="term_period" jdbcType="INTEGER" property="termPeriod"/>
<result column="first_repayment_date" jdbcType="VARCHAR" property="firstRepaymentDate"/>
<result column="grace_period" jdbcType="INTEGER" property="gracePeriod"/>
</resultMap>
<select id="saveLoanInfoRecordLog" parameterType="cn.quantgroup.report.domain.baihang.LoanInfoZhuDai">
......@@ -59,4 +59,10 @@
</foreach>
</insert>
<select id="findByLoanId" parameterType="java.lang.String" resultMap="LoanInfoResultMap">
select *
from loan_info_zhudai
where loan_id = #{loanId,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment