You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
401 lines
16 KiB
XML
401 lines
16 KiB
XML
<?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.sztzjy.bank.mapper.BankCardInformationMapper">
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.bank.entity.BankCardInformation">
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
<result column="customer_id" jdbcType="VARCHAR" property="customerId" />
|
|
<result column="currency" jdbcType="VARCHAR" property="currency" />
|
|
<result column="currency_exchange_symbol" jdbcType="VARCHAR" property="currencyExchangeSymbol" />
|
|
<result column="classify_type" jdbcType="VARCHAR" property="classifyType" />
|
|
<result column="nature_account" jdbcType="VARCHAR" property="natureAccount" />
|
|
<result column="voucher_type" jdbcType="VARCHAR" property="voucherType" />
|
|
<result column="withdrawal_method" jdbcType="VARCHAR" property="withdrawalMethod" />
|
|
<result column="withdrawal_pwd" jdbcType="VARCHAR" property="withdrawalPwd" />
|
|
<result column="confirm_password" jdbcType="VARCHAR" property="confirmPassword" />
|
|
<result column="bank_card_number" jdbcType="VARCHAR" property="bankCardNumber" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
<result column="sub_state" jdbcType="INTEGER" property="subState" />
|
|
<result column="error_number" jdbcType="INTEGER" property="errorNumber" />
|
|
<result column="number" jdbcType="INTEGER" property="number" />
|
|
</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, customer_id, currency, currency_exchange_symbol, classify_type, nature_account,
|
|
voucher_type, withdrawal_method, withdrawal_pwd, confirm_password, bank_card_number,
|
|
create_time, update_time, user_id, sub_state, error_number, number
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.sztzjy.bank.entity.BankCardInformationExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from bank_card_information
|
|
<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.String" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from bank_card_information
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
delete from bank_card_information
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.bank.entity.BankCardInformationExample">
|
|
delete from bank_card_information
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.sztzjy.bank.entity.BankCardInformation">
|
|
insert into bank_card_information (id, customer_id, currency,
|
|
currency_exchange_symbol, classify_type, nature_account,
|
|
voucher_type, withdrawal_method, withdrawal_pwd,
|
|
confirm_password, bank_card_number, create_time,
|
|
update_time, user_id, sub_state,
|
|
error_number, number)
|
|
values (#{id,jdbcType=VARCHAR}, #{customerId,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR},
|
|
#{currencyExchangeSymbol,jdbcType=VARCHAR}, #{classifyType,jdbcType=VARCHAR}, #{natureAccount,jdbcType=VARCHAR},
|
|
#{voucherType,jdbcType=VARCHAR}, #{withdrawalMethod,jdbcType=VARCHAR}, #{withdrawalPwd,jdbcType=VARCHAR},
|
|
#{confirmPassword,jdbcType=VARCHAR}, #{bankCardNumber,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{userId,jdbcType=VARCHAR}, #{subState,jdbcType=INTEGER},
|
|
#{errorNumber,jdbcType=INTEGER}, #{number,jdbcType=INTEGER})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.sztzjy.bank.entity.BankCardInformation">
|
|
insert into bank_card_information
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="customerId != null">
|
|
customer_id,
|
|
</if>
|
|
<if test="currency != null">
|
|
currency,
|
|
</if>
|
|
<if test="currencyExchangeSymbol != null">
|
|
currency_exchange_symbol,
|
|
</if>
|
|
<if test="classifyType != null">
|
|
classify_type,
|
|
</if>
|
|
<if test="natureAccount != null">
|
|
nature_account,
|
|
</if>
|
|
<if test="voucherType != null">
|
|
voucher_type,
|
|
</if>
|
|
<if test="withdrawalMethod != null">
|
|
withdrawal_method,
|
|
</if>
|
|
<if test="withdrawalPwd != null">
|
|
withdrawal_pwd,
|
|
</if>
|
|
<if test="confirmPassword != null">
|
|
confirm_password,
|
|
</if>
|
|
<if test="bankCardNumber != null">
|
|
bank_card_number,
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time,
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time,
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id,
|
|
</if>
|
|
<if test="subState != null">
|
|
sub_state,
|
|
</if>
|
|
<if test="errorNumber != null">
|
|
error_number,
|
|
</if>
|
|
<if test="number != null">
|
|
number,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="customerId != null">
|
|
#{customerId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="currency != null">
|
|
#{currency,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="currencyExchangeSymbol != null">
|
|
#{currencyExchangeSymbol,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="classifyType != null">
|
|
#{classifyType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="natureAccount != null">
|
|
#{natureAccount,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="voucherType != null">
|
|
#{voucherType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="withdrawalMethod != null">
|
|
#{withdrawalMethod,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="withdrawalPwd != null">
|
|
#{withdrawalPwd,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="confirmPassword != null">
|
|
#{confirmPassword,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bankCardNumber != null">
|
|
#{bankCardNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="userId != null">
|
|
#{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="subState != null">
|
|
#{subState,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="errorNumber != null">
|
|
#{errorNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="number != null">
|
|
#{number,jdbcType=INTEGER},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.sztzjy.bank.entity.BankCardInformationExample" resultType="java.lang.Long">
|
|
select count(*) from bank_card_information
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update bank_card_information
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.customerId != null">
|
|
customer_id = #{record.customerId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.currency != null">
|
|
currency = #{record.currency,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.currencyExchangeSymbol != null">
|
|
currency_exchange_symbol = #{record.currencyExchangeSymbol,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.classifyType != null">
|
|
classify_type = #{record.classifyType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.natureAccount != null">
|
|
nature_account = #{record.natureAccount,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.voucherType != null">
|
|
voucher_type = #{record.voucherType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.withdrawalMethod != null">
|
|
withdrawal_method = #{record.withdrawalMethod,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.withdrawalPwd != null">
|
|
withdrawal_pwd = #{record.withdrawalPwd,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.confirmPassword != null">
|
|
confirm_password = #{record.confirmPassword,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.bankCardNumber != null">
|
|
bank_card_number = #{record.bankCardNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.userId != null">
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.subState != null">
|
|
sub_state = #{record.subState,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.errorNumber != null">
|
|
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.number != null">
|
|
number = #{record.number,jdbcType=INTEGER},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update bank_card_information
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
customer_id = #{record.customerId,jdbcType=VARCHAR},
|
|
currency = #{record.currency,jdbcType=VARCHAR},
|
|
currency_exchange_symbol = #{record.currencyExchangeSymbol,jdbcType=VARCHAR},
|
|
classify_type = #{record.classifyType,jdbcType=VARCHAR},
|
|
nature_account = #{record.natureAccount,jdbcType=VARCHAR},
|
|
voucher_type = #{record.voucherType,jdbcType=VARCHAR},
|
|
withdrawal_method = #{record.withdrawalMethod,jdbcType=VARCHAR},
|
|
withdrawal_pwd = #{record.withdrawalPwd,jdbcType=VARCHAR},
|
|
confirm_password = #{record.confirmPassword,jdbcType=VARCHAR},
|
|
bank_card_number = #{record.bankCardNumber,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
sub_state = #{record.subState,jdbcType=INTEGER},
|
|
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
|
number = #{record.number,jdbcType=INTEGER}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.bank.entity.BankCardInformation">
|
|
update bank_card_information
|
|
<set>
|
|
<if test="customerId != null">
|
|
customer_id = #{customerId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="currency != null">
|
|
currency = #{currency,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="currencyExchangeSymbol != null">
|
|
currency_exchange_symbol = #{currencyExchangeSymbol,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="classifyType != null">
|
|
classify_type = #{classifyType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="natureAccount != null">
|
|
nature_account = #{natureAccount,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="voucherType != null">
|
|
voucher_type = #{voucherType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="withdrawalMethod != null">
|
|
withdrawal_method = #{withdrawalMethod,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="withdrawalPwd != null">
|
|
withdrawal_pwd = #{withdrawalPwd,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="confirmPassword != null">
|
|
confirm_password = #{confirmPassword,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bankCardNumber != null">
|
|
bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="subState != null">
|
|
sub_state = #{subState,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="errorNumber != null">
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="number != null">
|
|
number = #{number,jdbcType=INTEGER},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.bank.entity.BankCardInformation">
|
|
update bank_card_information
|
|
set customer_id = #{customerId,jdbcType=VARCHAR},
|
|
currency = #{currency,jdbcType=VARCHAR},
|
|
currency_exchange_symbol = #{currencyExchangeSymbol,jdbcType=VARCHAR},
|
|
classify_type = #{classifyType,jdbcType=VARCHAR},
|
|
nature_account = #{natureAccount,jdbcType=VARCHAR},
|
|
voucher_type = #{voucherType,jdbcType=VARCHAR},
|
|
withdrawal_method = #{withdrawalMethod,jdbcType=VARCHAR},
|
|
withdrawal_pwd = #{withdrawalPwd,jdbcType=VARCHAR},
|
|
confirm_password = #{confirmPassword,jdbcType=VARCHAR},
|
|
bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
sub_state = #{subState,jdbcType=INTEGER},
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
number = #{number,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
</mapper> |