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.
590 lines
22 KiB
XML
590 lines
22 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.CustomerInformationMapper">
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.bank.entity.CustomerInformation">
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
<result column="ch_name" jdbcType="VARCHAR" property="chName" />
|
|
<result column="us_name" jdbcType="VARCHAR" property="usName" />
|
|
<result column="sex" jdbcType="INTEGER" property="sex" />
|
|
<result column="nationality" jdbcType="VARCHAR" property="nationality" />
|
|
<result column="id_type" jdbcType="VARCHAR" property="idType" />
|
|
<result column="id_number" jdbcType="VARCHAR" property="idNumber" />
|
|
<result column="deadline_type" jdbcType="VARCHAR" property="deadlineType" />
|
|
<result column="birthday" jdbcType="TIMESTAMP" property="birthday" />
|
|
<result column="licence_issu_auth" jdbcType="VARCHAR" property="licenceIssuAuth" />
|
|
<result column="effective_start_date" jdbcType="TIMESTAMP" property="effectiveStartDate" />
|
|
<result column="effective_end_date" jdbcType="TIMESTAMP" property="effectiveEndDate" />
|
|
<result column="address" jdbcType="VARCHAR" property="address" />
|
|
<result column="marital_status" jdbcType="VARCHAR" property="maritalStatus" />
|
|
<result column="career" jdbcType="VARCHAR" property="career" />
|
|
<result column="mail_address" jdbcType="VARCHAR" property="mailAddress" />
|
|
<result column="tel" jdbcType="VARCHAR" property="tel" />
|
|
<result column="Is_resident" jdbcType="INTEGER" property="isResident" />
|
|
<result column="risk_level" jdbcType="VARCHAR" property="riskLevel" />
|
|
<result column="customer_no" jdbcType="VARCHAR" property="customerNo" />
|
|
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
|
|
<result column="handling_agency" jdbcType="VARCHAR" property="handlingAgency" />
|
|
<result column="handling_teller" jdbcType="VARCHAR" property="handlingTeller" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<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, user_id, ch_name, us_name, sex, nationality, id_type, id_number, deadline_type,
|
|
birthday, licence_issu_auth, effective_start_date, effective_end_date, address, marital_status,
|
|
career, mail_address, tel, Is_resident, risk_level, customer_no, serial_number, handling_agency,
|
|
handling_teller, create_time, update_time, sub_state, error_number, number
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.sztzjy.bank.entity.CustomerInformationExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from customer_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 customer_information
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
delete from customer_information
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.bank.entity.CustomerInformationExample">
|
|
delete from customer_information
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.sztzjy.bank.entity.CustomerInformation">
|
|
insert into customer_information (id, user_id, ch_name,
|
|
us_name, sex, nationality,
|
|
id_type, id_number, deadline_type,
|
|
birthday, licence_issu_auth, effective_start_date,
|
|
effective_end_date, address, marital_status,
|
|
career, mail_address, tel,
|
|
Is_resident, risk_level, customer_no,
|
|
serial_number, handling_agency, handling_teller,
|
|
create_time, update_time, sub_state,
|
|
error_number, number)
|
|
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{chName,jdbcType=VARCHAR},
|
|
#{usName,jdbcType=VARCHAR}, #{sex,jdbcType=INTEGER}, #{nationality,jdbcType=VARCHAR},
|
|
#{idType,jdbcType=VARCHAR}, #{idNumber,jdbcType=VARCHAR}, #{deadlineType,jdbcType=VARCHAR},
|
|
#{birthday,jdbcType=TIMESTAMP}, #{licenceIssuAuth,jdbcType=VARCHAR}, #{effectiveStartDate,jdbcType=TIMESTAMP},
|
|
#{effectiveEndDate,jdbcType=TIMESTAMP}, #{address,jdbcType=VARCHAR}, #{maritalStatus,jdbcType=VARCHAR},
|
|
#{career,jdbcType=VARCHAR}, #{mailAddress,jdbcType=VARCHAR}, #{tel,jdbcType=VARCHAR},
|
|
#{isResident,jdbcType=INTEGER}, #{riskLevel,jdbcType=VARCHAR}, #{customerNo,jdbcType=VARCHAR},
|
|
#{serialNumber,jdbcType=VARCHAR}, #{handlingAgency,jdbcType=VARCHAR}, #{handlingTeller,jdbcType=VARCHAR},
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{subState,jdbcType=INTEGER},
|
|
#{errorNumber,jdbcType=INTEGER}, #{number,jdbcType=INTEGER})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.sztzjy.bank.entity.CustomerInformation">
|
|
insert into customer_information
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id,
|
|
</if>
|
|
<if test="chName != null">
|
|
ch_name,
|
|
</if>
|
|
<if test="usName != null">
|
|
us_name,
|
|
</if>
|
|
<if test="sex != null">
|
|
sex,
|
|
</if>
|
|
<if test="nationality != null">
|
|
nationality,
|
|
</if>
|
|
<if test="idType != null">
|
|
id_type,
|
|
</if>
|
|
<if test="idNumber != null">
|
|
id_number,
|
|
</if>
|
|
<if test="deadlineType != null">
|
|
deadline_type,
|
|
</if>
|
|
<if test="birthday != null">
|
|
birthday,
|
|
</if>
|
|
<if test="licenceIssuAuth != null">
|
|
licence_issu_auth,
|
|
</if>
|
|
<if test="effectiveStartDate != null">
|
|
effective_start_date,
|
|
</if>
|
|
<if test="effectiveEndDate != null">
|
|
effective_end_date,
|
|
</if>
|
|
<if test="address != null">
|
|
address,
|
|
</if>
|
|
<if test="maritalStatus != null">
|
|
marital_status,
|
|
</if>
|
|
<if test="career != null">
|
|
career,
|
|
</if>
|
|
<if test="mailAddress != null">
|
|
mail_address,
|
|
</if>
|
|
<if test="tel != null">
|
|
tel,
|
|
</if>
|
|
<if test="isResident != null">
|
|
Is_resident,
|
|
</if>
|
|
<if test="riskLevel != null">
|
|
risk_level,
|
|
</if>
|
|
<if test="customerNo != null">
|
|
customer_no,
|
|
</if>
|
|
<if test="serialNumber != null">
|
|
serial_number,
|
|
</if>
|
|
<if test="handlingAgency != null">
|
|
handling_agency,
|
|
</if>
|
|
<if test="handlingTeller != null">
|
|
handling_teller,
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time,
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time,
|
|
</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="userId != null">
|
|
#{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="chName != null">
|
|
#{chName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="usName != null">
|
|
#{usName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sex != null">
|
|
#{sex,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="nationality != null">
|
|
#{nationality,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="idType != null">
|
|
#{idType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="idNumber != null">
|
|
#{idNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="deadlineType != null">
|
|
#{deadlineType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="birthday != null">
|
|
#{birthday,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="licenceIssuAuth != null">
|
|
#{licenceIssuAuth,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="effectiveStartDate != null">
|
|
#{effectiveStartDate,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="effectiveEndDate != null">
|
|
#{effectiveEndDate,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="address != null">
|
|
#{address,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="maritalStatus != null">
|
|
#{maritalStatus,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="career != null">
|
|
#{career,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="mailAddress != null">
|
|
#{mailAddress,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tel != null">
|
|
#{tel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isResident != null">
|
|
#{isResident,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="riskLevel != null">
|
|
#{riskLevel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="customerNo != null">
|
|
#{customerNo,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="serialNumber != null">
|
|
#{serialNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="handlingAgency != null">
|
|
#{handlingAgency,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="handlingTeller != null">
|
|
#{handlingTeller,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
</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.CustomerInformationExample" resultType="java.lang.Long">
|
|
select count(*) from customer_information
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update customer_information
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.userId != null">
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.chName != null">
|
|
ch_name = #{record.chName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.usName != null">
|
|
us_name = #{record.usName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.sex != null">
|
|
sex = #{record.sex,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.nationality != null">
|
|
nationality = #{record.nationality,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.idType != null">
|
|
id_type = #{record.idType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.idNumber != null">
|
|
id_number = #{record.idNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.deadlineType != null">
|
|
deadline_type = #{record.deadlineType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.birthday != null">
|
|
birthday = #{record.birthday,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.licenceIssuAuth != null">
|
|
licence_issu_auth = #{record.licenceIssuAuth,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.effectiveStartDate != null">
|
|
effective_start_date = #{record.effectiveStartDate,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.effectiveEndDate != null">
|
|
effective_end_date = #{record.effectiveEndDate,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.address != null">
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.maritalStatus != null">
|
|
marital_status = #{record.maritalStatus,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.career != null">
|
|
career = #{record.career,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.mailAddress != null">
|
|
mail_address = #{record.mailAddress,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.tel != null">
|
|
tel = #{record.tel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.isResident != null">
|
|
Is_resident = #{record.isResident,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.riskLevel != null">
|
|
risk_level = #{record.riskLevel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.customerNo != null">
|
|
customer_no = #{record.customerNo,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.serialNumber != null">
|
|
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.handlingAgency != null">
|
|
handling_agency = #{record.handlingAgency,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.handlingTeller != null">
|
|
handling_teller = #{record.handlingTeller,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.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 customer_information
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
ch_name = #{record.chName,jdbcType=VARCHAR},
|
|
us_name = #{record.usName,jdbcType=VARCHAR},
|
|
sex = #{record.sex,jdbcType=INTEGER},
|
|
nationality = #{record.nationality,jdbcType=VARCHAR},
|
|
id_type = #{record.idType,jdbcType=VARCHAR},
|
|
id_number = #{record.idNumber,jdbcType=VARCHAR},
|
|
deadline_type = #{record.deadlineType,jdbcType=VARCHAR},
|
|
birthday = #{record.birthday,jdbcType=TIMESTAMP},
|
|
licence_issu_auth = #{record.licenceIssuAuth,jdbcType=VARCHAR},
|
|
effective_start_date = #{record.effectiveStartDate,jdbcType=TIMESTAMP},
|
|
effective_end_date = #{record.effectiveEndDate,jdbcType=TIMESTAMP},
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
marital_status = #{record.maritalStatus,jdbcType=VARCHAR},
|
|
career = #{record.career,jdbcType=VARCHAR},
|
|
mail_address = #{record.mailAddress,jdbcType=VARCHAR},
|
|
tel = #{record.tel,jdbcType=VARCHAR},
|
|
Is_resident = #{record.isResident,jdbcType=INTEGER},
|
|
risk_level = #{record.riskLevel,jdbcType=VARCHAR},
|
|
customer_no = #{record.customerNo,jdbcType=VARCHAR},
|
|
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
handling_agency = #{record.handlingAgency,jdbcType=VARCHAR},
|
|
handling_teller = #{record.handlingTeller,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
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.CustomerInformation">
|
|
update customer_information
|
|
<set>
|
|
<if test="userId != null">
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="chName != null">
|
|
ch_name = #{chName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="usName != null">
|
|
us_name = #{usName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sex != null">
|
|
sex = #{sex,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="nationality != null">
|
|
nationality = #{nationality,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="idType != null">
|
|
id_type = #{idType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="idNumber != null">
|
|
id_number = #{idNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="deadlineType != null">
|
|
deadline_type = #{deadlineType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="birthday != null">
|
|
birthday = #{birthday,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="licenceIssuAuth != null">
|
|
licence_issu_auth = #{licenceIssuAuth,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="effectiveStartDate != null">
|
|
effective_start_date = #{effectiveStartDate,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="effectiveEndDate != null">
|
|
effective_end_date = #{effectiveEndDate,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="address != null">
|
|
address = #{address,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="maritalStatus != null">
|
|
marital_status = #{maritalStatus,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="career != null">
|
|
career = #{career,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="mailAddress != null">
|
|
mail_address = #{mailAddress,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tel != null">
|
|
tel = #{tel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isResident != null">
|
|
Is_resident = #{isResident,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="riskLevel != null">
|
|
risk_level = #{riskLevel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="customerNo != null">
|
|
customer_no = #{customerNo,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="serialNumber != null">
|
|
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="handlingAgency != null">
|
|
handling_agency = #{handlingAgency,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="handlingTeller != null">
|
|
handling_teller = #{handlingTeller,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="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.CustomerInformation">
|
|
update customer_information
|
|
set user_id = #{userId,jdbcType=VARCHAR},
|
|
ch_name = #{chName,jdbcType=VARCHAR},
|
|
us_name = #{usName,jdbcType=VARCHAR},
|
|
sex = #{sex,jdbcType=INTEGER},
|
|
nationality = #{nationality,jdbcType=VARCHAR},
|
|
id_type = #{idType,jdbcType=VARCHAR},
|
|
id_number = #{idNumber,jdbcType=VARCHAR},
|
|
deadline_type = #{deadlineType,jdbcType=VARCHAR},
|
|
birthday = #{birthday,jdbcType=TIMESTAMP},
|
|
licence_issu_auth = #{licenceIssuAuth,jdbcType=VARCHAR},
|
|
effective_start_date = #{effectiveStartDate,jdbcType=TIMESTAMP},
|
|
effective_end_date = #{effectiveEndDate,jdbcType=TIMESTAMP},
|
|
address = #{address,jdbcType=VARCHAR},
|
|
marital_status = #{maritalStatus,jdbcType=VARCHAR},
|
|
career = #{career,jdbcType=VARCHAR},
|
|
mail_address = #{mailAddress,jdbcType=VARCHAR},
|
|
tel = #{tel,jdbcType=VARCHAR},
|
|
Is_resident = #{isResident,jdbcType=INTEGER},
|
|
risk_level = #{riskLevel,jdbcType=VARCHAR},
|
|
customer_no = #{customerNo,jdbcType=VARCHAR},
|
|
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
handling_agency = #{handlingAgency,jdbcType=VARCHAR},
|
|
handling_teller = #{handlingTeller,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
sub_state = #{subState,jdbcType=INTEGER},
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
number = #{number,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
</mapper> |