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

映射出错

parent 919f020f
...@@ -24,4 +24,6 @@ public interface LoanInfoDbMapper { ...@@ -24,4 +24,6 @@ public interface LoanInfoDbMapper {
void batchSaveLoanInfoRecordLog(List<LoanInfoZhuDai> list); void batchSaveLoanInfoRecordLog(List<LoanInfoZhuDai> list);
List<LoanInfoZhuDai> findByLoanId(String loanId);
} }
...@@ -4,26 +4,26 @@ ...@@ -4,26 +4,26 @@
<resultMap id="LoanInfoResultMap" type="cn.quantgroup.report.domain.baihang.LoanInfoZhuDai"> <resultMap id="LoanInfoResultMap" type="cn.quantgroup.report.domain.baihang.LoanInfoZhuDai">
<result column="recordId" jdbcType="VARCHAR" property="record_id"/> <result column="record_id" jdbcType="VARCHAR" property="recordId"/>
<result column="reqID" jdbcType="VARCHAR" property="req_id"/> <result column="req_id" jdbcType="VARCHAR" property="reqID"/>
<result column="opCode" jdbcType="VARCHAR" property="op_Code"/> <result column="op_Code" jdbcType="VARCHAR" property="opCode"/>
<result column="uploadTs" jdbcType="VARCHAR" property="upload_ts"/> <result column="upload_ts" jdbcType="VARCHAR" property="uploadTs"/>
<result column="name" jdbcType="VARCHAR" property="name"/> <result column="name" jdbcType="VARCHAR" property="name"/>
<result column="pid" jdbcType="VARCHAR" property="pid"/> <result column="pid" jdbcType="VARCHAR" property="pid"/>
<result column="mobile" jdbcType="VARCHAR" property="mobile"/> <result column="mobile" jdbcType="VARCHAR" property="mobile"/>
<result column="loanId" jdbcType="VARCHAR" property="loan_id"/> <result column="loan_id" jdbcType="VARCHAR" property="loanId"/>
<result column="guaranteeType" jdbcType="INTEGER" property="guarantee_type"/> <result column="guarantee_type" jdbcType="INTEGER" property="guaranteeType"/>
<result column="loanPurpose" jdbcType="INTEGER" property="loan_purpose"/> <result column="loan_purpose" jdbcType="INTEGER" property="loanPurpose"/>
<result column="applyDate" jdbcType="VARCHAR" property="apply_date"/> <result column="apply_date" jdbcType="VARCHAR" property="applyDate"/>
<result column="accountOpenDate" jdbcType="VARCHAR" property="account_open_date"/> <result column="account_open_date" jdbcType="VARCHAR" property="accountOpenDate"/>
<result column="issueDate" jdbcType="VARCHAR" property="issue_date"/> <result column="issue_date" jdbcType="VARCHAR" property="issueDate"/>
<result column="dueDate" jdbcType="VARCHAR" property="due_date"/> <result column="due_date" jdbcType="VARCHAR" property="dueDate"/>
<result column="loanAmount" jdbcType="DECIMAL" property="loan_amount"/> <result column="loan_amount" jdbcType="DECIMAL" property="loanAmount"/>
<result column="totalTerm" jdbcType="INTEGER" property="total_term"/> <result column="total_term" jdbcType="INTEGER" property="totalTerm"/>
<result column="targetRepayDateType" jdbcType="INTEGER" property="target_repay_date_type"/> <result column="target_repay_date_type" jdbcType="INTEGER" property="targetRepayDateType"/>
<result column="termPeriod" jdbcType="INTEGER" property="term_period"/> <result column="term_period" jdbcType="INTEGER" property="termPeriod"/>
<result column="firstRepaymentDate" jdbcType="VARCHAR" property="first_repayment_date"/> <result column="first_repayment_date" jdbcType="VARCHAR" property="firstRepaymentDate"/>
<result column="gracePeriod" jdbcType="INTEGER" property="grace_period"/> <result column="grace_period" jdbcType="INTEGER" property="gracePeriod"/>
</resultMap> </resultMap>
<select id="saveLoanInfoRecordLog" parameterType="cn.quantgroup.report.domain.baihang.LoanInfoZhuDai"> <select id="saveLoanInfoRecordLog" parameterType="cn.quantgroup.report.domain.baihang.LoanInfoZhuDai">
...@@ -59,4 +59,10 @@ ...@@ -59,4 +59,10 @@
</foreach> </foreach>
</insert> </insert>
<select id="findByLoanId" parameterType="java.lang.String" resultMap="LoanInfoResultMap">
select *
from loan_info_zhudai
where loan_id = #{loanId,jdbcType=VARCHAR}
</select>
</mapper> </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