Commit 0b6c83f3 authored by LSL's avatar LSL

还款部分

parent 95ed55ee
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jqtx.windows.repository.mapper.WindowsRepayMapper">
<resultMap id="BaseResultMap" type="com.jqtx.windows.repository.entity.WindowsRepay">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="loan_no" jdbcType="VARCHAR" property="loanNo" />
<result column="backed_no" jdbcType="VARCHAR" property="backedNo" />
<result column="bank_account" jdbcType="VARCHAR" property="bankAccount" />
<result column="backed_amt" jdbcType="DECIMAL" property="backedAmt" />
<result column="is_settle" jdbcType="INTEGER" property="isSettle" />
<result column="backed_type" jdbcType="VARCHAR" property="backedType" />
<result column="repay_result" jdbcType="VARCHAR" property="repayResult" />
<result column="repay_status" jdbcType="VARCHAR" property="repayStatus" />
<result column="creator" jdbcType="VARCHAR" property="creator" />
<result column="gmt_created" jdbcType="TIMESTAMP" property="gmtCreated" />
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
<result column="memo" jdbcType="VARCHAR" property="memo" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, loan_no, backed_no, bank_account, backed_amt, is_settle, backed_type, repay_result,
repay_status, creator, gmt_created, gmt_modified, memo
</sql>
<select id="selectByExample" parameterType="com.jqtx.windows.repository.entity.WindowsRepayExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from windows_repay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from windows_repay
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from windows_repay
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.jqtx.windows.repository.entity.WindowsRepayExample">
delete from windows_repay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.jqtx.windows.repository.entity.WindowsRepay">
insert into windows_repay (id, loan_no, backed_no,
bank_account, backed_amt, is_settle,
backed_type, repay_result, repay_status,
creator, gmt_created, gmt_modified,
memo)
values (#{id,jdbcType=BIGINT}, #{loanNo,jdbcType=VARCHAR}, #{backedNo,jdbcType=VARCHAR},
#{bankAccount,jdbcType=VARCHAR}, #{backedAmt,jdbcType=DECIMAL}, #{isSettle,jdbcType=INTEGER},
#{backedType,jdbcType=VARCHAR}, #{repayResult,jdbcType=VARCHAR}, #{repayStatus,jdbcType=VARCHAR},
#{creator,jdbcType=VARCHAR}, #{gmtCreated,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{memo,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.jqtx.windows.repository.entity.WindowsRepay">
insert into windows_repay
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="loanNo != null">
loan_no,
</if>
<if test="backedNo != null">
backed_no,
</if>
<if test="bankAccount != null">
bank_account,
</if>
<if test="backedAmt != null">
backed_amt,
</if>
<if test="isSettle != null">
is_settle,
</if>
<if test="backedType != null">
backed_type,
</if>
<if test="repayResult != null">
repay_result,
</if>
<if test="repayStatus != null">
repay_status,
</if>
<if test="creator != null">
creator,
</if>
<if test="gmtCreated != null">
gmt_created,
</if>
<if test="gmtModified != null">
gmt_modified,
</if>
<if test="memo != null">
memo,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="loanNo != null">
#{loanNo,jdbcType=VARCHAR},
</if>
<if test="backedNo != null">
#{backedNo,jdbcType=VARCHAR},
</if>
<if test="bankAccount != null">
#{bankAccount,jdbcType=VARCHAR},
</if>
<if test="backedAmt != null">
#{backedAmt,jdbcType=DECIMAL},
</if>
<if test="isSettle != null">
#{isSettle,jdbcType=INTEGER},
</if>
<if test="backedType != null">
#{backedType,jdbcType=VARCHAR},
</if>
<if test="repayResult != null">
#{repayResult,jdbcType=VARCHAR},
</if>
<if test="repayStatus != null">
#{repayStatus,jdbcType=VARCHAR},
</if>
<if test="creator != null">
#{creator,jdbcType=VARCHAR},
</if>
<if test="gmtCreated != null">
#{gmtCreated,jdbcType=TIMESTAMP},
</if>
<if test="gmtModified != null">
#{gmtModified,jdbcType=TIMESTAMP},
</if>
<if test="memo != null">
#{memo,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.jqtx.windows.repository.entity.WindowsRepayExample" resultType="java.lang.Long">
select count(*) from windows_repay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update windows_repay
<set>
<if test="row.id != null">
id = #{row.id,jdbcType=BIGINT},
</if>
<if test="row.loanNo != null">
loan_no = #{row.loanNo,jdbcType=VARCHAR},
</if>
<if test="row.backedNo != null">
backed_no = #{row.backedNo,jdbcType=VARCHAR},
</if>
<if test="row.bankAccount != null">
bank_account = #{row.bankAccount,jdbcType=VARCHAR},
</if>
<if test="row.backedAmt != null">
backed_amt = #{row.backedAmt,jdbcType=DECIMAL},
</if>
<if test="row.isSettle != null">
is_settle = #{row.isSettle,jdbcType=INTEGER},
</if>
<if test="row.backedType != null">
backed_type = #{row.backedType,jdbcType=VARCHAR},
</if>
<if test="row.repayResult != null">
repay_result = #{row.repayResult,jdbcType=VARCHAR},
</if>
<if test="row.repayStatus != null">
repay_status = #{row.repayStatus,jdbcType=VARCHAR},
</if>
<if test="row.creator != null">
creator = #{row.creator,jdbcType=VARCHAR},
</if>
<if test="row.gmtCreated != null">
gmt_created = #{row.gmtCreated,jdbcType=TIMESTAMP},
</if>
<if test="row.gmtModified != null">
gmt_modified = #{row.gmtModified,jdbcType=TIMESTAMP},
</if>
<if test="row.memo != null">
memo = #{row.memo,jdbcType=VARCHAR},
</if>
</set>
<if test="example != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update windows_repay
set id = #{row.id,jdbcType=BIGINT},
loan_no = #{row.loanNo,jdbcType=VARCHAR},
backed_no = #{row.backedNo,jdbcType=VARCHAR},
bank_account = #{row.bankAccount,jdbcType=VARCHAR},
backed_amt = #{row.backedAmt,jdbcType=DECIMAL},
is_settle = #{row.isSettle,jdbcType=INTEGER},
backed_type = #{row.backedType,jdbcType=VARCHAR},
repay_result = #{row.repayResult,jdbcType=VARCHAR},
repay_status = #{row.repayStatus,jdbcType=VARCHAR},
creator = #{row.creator,jdbcType=VARCHAR},
gmt_created = #{row.gmtCreated,jdbcType=TIMESTAMP},
gmt_modified = #{row.gmtModified,jdbcType=TIMESTAMP},
memo = #{row.memo,jdbcType=VARCHAR}
<if test="example != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.jqtx.windows.repository.entity.WindowsRepay">
update windows_repay
<set>
<if test="loanNo != null">
loan_no = #{loanNo,jdbcType=VARCHAR},
</if>
<if test="backedNo != null">
backed_no = #{backedNo,jdbcType=VARCHAR},
</if>
<if test="bankAccount != null">
bank_account = #{bankAccount,jdbcType=VARCHAR},
</if>
<if test="backedAmt != null">
backed_amt = #{backedAmt,jdbcType=DECIMAL},
</if>
<if test="isSettle != null">
is_settle = #{isSettle,jdbcType=INTEGER},
</if>
<if test="backedType != null">
backed_type = #{backedType,jdbcType=VARCHAR},
</if>
<if test="repayResult != null">
repay_result = #{repayResult,jdbcType=VARCHAR},
</if>
<if test="repayStatus != null">
repay_status = #{repayStatus,jdbcType=VARCHAR},
</if>
<if test="creator != null">
creator = #{creator,jdbcType=VARCHAR},
</if>
<if test="gmtCreated != null">
gmt_created = #{gmtCreated,jdbcType=TIMESTAMP},
</if>
<if test="gmtModified != null">
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
</if>
<if test="memo != null">
memo = #{memo,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.jqtx.windows.repository.entity.WindowsRepay">
update windows_repay
set loan_no = #{loanNo,jdbcType=VARCHAR},
backed_no = #{backedNo,jdbcType=VARCHAR},
bank_account = #{bankAccount,jdbcType=VARCHAR},
backed_amt = #{backedAmt,jdbcType=DECIMAL},
is_settle = #{isSettle,jdbcType=INTEGER},
backed_type = #{backedType,jdbcType=VARCHAR},
repay_result = #{repayResult,jdbcType=VARCHAR},
repay_status = #{repayStatus,jdbcType=VARCHAR},
creator = #{creator,jdbcType=VARCHAR},
gmt_created = #{gmtCreated,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
memo = #{memo,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.jqtx.windows.repository.entity.WindowsRepay">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="loan_no" jdbcType="VARCHAR" property="loanNo" />
......@@ -409,7 +75,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, loan_no, backed_no, bank_account, backed_amt, is_settle, backed_type, repay_result,
id, loan_no, backed_no, bank_account, backed_amt, is_settle, backed_type, repay_result,
repay_status, creator, gmt_created, gmt_modified, memo
</sql>
<select id="selectByExample" parameterType="com.jqtx.windows.repository.entity.WindowsRepayExample" resultMap="BaseResultMap">
......@@ -427,7 +93,7 @@
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
select
<include refid="Base_Column_List" />
from windows_repay
where id = #{id,jdbcType=BIGINT}
......@@ -443,15 +109,15 @@
</if>
</delete>
<insert id="insert" parameterType="com.jqtx.windows.repository.entity.WindowsRepay">
insert into windows_repay (id, loan_no, backed_no,
bank_account, backed_amt, is_settle,
backed_type, repay_result, repay_status,
creator, gmt_created, gmt_modified,
insert into windows_repay (id, loan_no, backed_no,
bank_account, backed_amt, is_settle,
backed_type, repay_result, repay_status,
creator, gmt_created, gmt_modified,
memo)
values (#{id,jdbcType=BIGINT}, #{loanNo,jdbcType=VARCHAR}, #{backedNo,jdbcType=VARCHAR},
#{bankAccount,jdbcType=VARCHAR}, #{backedAmt,jdbcType=DECIMAL}, #{isSettle,jdbcType=INTEGER},
#{backedType,jdbcType=INTEGER}, #{repayResult,jdbcType=VARCHAR}, #{repayStatus,jdbcType=VARCHAR},
#{creator,jdbcType=VARCHAR}, #{gmtCreated,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
values (#{id,jdbcType=BIGINT}, #{loanNo,jdbcType=VARCHAR}, #{backedNo,jdbcType=VARCHAR},
#{bankAccount,jdbcType=VARCHAR}, #{backedAmt,jdbcType=DECIMAL}, #{isSettle,jdbcType=INTEGER},
#{backedType,jdbcType=INTEGER}, #{repayResult,jdbcType=VARCHAR}, #{repayStatus,jdbcType=VARCHAR},
#{creator,jdbcType=VARCHAR}, #{gmtCreated,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{memo,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.jqtx.windows.repository.entity.WindowsRepay">
......@@ -669,4 +335,4 @@
memo = #{memo,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
</mapper>
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