TVipCardCustInfoIrainMapper.xml 12.3 KB
<?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.zteits.bill.mapper.TVipCardCustInfoIrainMapper">
  <resultMap id="BaseResultMap" type="com.zteits.bill.domain.TVipCardCustInfoIrain">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="park_code" jdbcType="VARCHAR" property="parkCode" />
    <result column="cust_name" jdbcType="VARCHAR" property="custName" />
    <result column="card_sequence" jdbcType="VARCHAR" property="cardSequence" />
    <result column="card_no" jdbcType="VARCHAR" property="cardNo" />
    <result column="car_number" jdbcType="VARCHAR" property="carNumber" />
    <result column="phone" jdbcType="VARCHAR" property="phone" />
    <result column="address" jdbcType="VARCHAR" property="address" />
    <result column="balance" jdbcType="BIGINT" property="balance" />
    <result column="eff_date" jdbcType="TIMESTAMP" property="effDate" />
    <result column="exp_date" jdbcType="TIMESTAMP" property="expDate" />
    <result column="detail_type" jdbcType="INTEGER" property="detailType" />
    <result column="email" jdbcType="VARCHAR" property="email" />
    <result column="in_area" jdbcType="VARCHAR" property="inArea" />
    <result column="out_area" jdbcType="VARCHAR" property="outArea" />
    <result column="cap_amount" jdbcType="INTEGER" property="capAmount" />
    <result column="cap_cycle" jdbcType="INTEGER" property="capCycle" />
    <result column="cap_rule" jdbcType="INTEGER" property="capRule" />
    <result column="discount" jdbcType="INTEGER" property="discount" />
    <result column="data_state" jdbcType="INTEGER" property="dataState" />
    <result column="create_empid" jdbcType="BIGINT" property="createEmpid" />
    <result column="create_name" jdbcType="VARCHAR" property="createName" />
    <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
    <result column="modify_empid" jdbcType="BIGINT" property="modifyEmpid" />
    <result column="modify_name" jdbcType="VARCHAR" property="modifyName" />
    <result column="modify_date" jdbcType="TIMESTAMP" property="modifyDate" />
  </resultMap>
  <sql id="Base_Column_List">
    id, park_code, cust_name, card_sequence, card_no, car_number, phone, address, balance, 
    eff_date, exp_date, detail_type, email, in_area, out_area, cap_amount, cap_cycle, 
    cap_rule, discount, data_state, create_empid, create_name, create_date, modify_empid, 
    modify_name, modify_date
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_vip_card_cust_info_irain
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from t_vip_card_cust_info_irain
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.zteits.bill.domain.TVipCardCustInfoIrain">
    insert into t_vip_card_cust_info_irain (id, park_code, cust_name, 
      card_sequence, card_no, car_number, 
      phone, address, balance, 
      eff_date, exp_date, detail_type, 
      email, in_area, out_area, 
      cap_amount, cap_cycle, cap_rule, 
      discount, data_state, create_empid, 
      create_name, create_date, modify_empid, 
      modify_name, modify_date)
    values (#{id,jdbcType=BIGINT}, #{parkCode,jdbcType=VARCHAR}, #{custName,jdbcType=VARCHAR}, 
      #{cardSequence,jdbcType=VARCHAR}, #{cardNo,jdbcType=VARCHAR}, #{carNumber,jdbcType=VARCHAR}, 
      #{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{balance,jdbcType=BIGINT}, 
      #{effDate,jdbcType=TIMESTAMP}, #{expDate,jdbcType=TIMESTAMP}, #{detailType,jdbcType=INTEGER}, 
      #{email,jdbcType=VARCHAR}, #{inArea,jdbcType=VARCHAR}, #{outArea,jdbcType=VARCHAR}, 
      #{capAmount,jdbcType=INTEGER}, #{capCycle,jdbcType=INTEGER}, #{capRule,jdbcType=INTEGER}, 
      #{discount,jdbcType=INTEGER}, #{dataState,jdbcType=INTEGER}, #{createEmpid,jdbcType=BIGINT}, 
      #{createName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modifyEmpid,jdbcType=BIGINT}, 
      #{modifyName,jdbcType=VARCHAR}, #{modifyDate,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.bill.domain.TVipCardCustInfoIrain">
    insert into t_vip_card_cust_info_irain
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="parkCode != null">
        park_code,
      </if>
      <if test="custName != null">
        cust_name,
      </if>
      <if test="cardSequence != null">
        card_sequence,
      </if>
      <if test="cardNo != null">
        card_no,
      </if>
      <if test="carNumber != null">
        car_number,
      </if>
      <if test="phone != null">
        phone,
      </if>
      <if test="address != null">
        address,
      </if>
      <if test="balance != null">
        balance,
      </if>
      <if test="effDate != null">
        eff_date,
      </if>
      <if test="expDate != null">
        exp_date,
      </if>
      <if test="detailType != null">
        detail_type,
      </if>
      <if test="email != null">
        email,
      </if>
      <if test="inArea != null">
        in_area,
      </if>
      <if test="outArea != null">
        out_area,
      </if>
      <if test="capAmount != null">
        cap_amount,
      </if>
      <if test="capCycle != null">
        cap_cycle,
      </if>
      <if test="capRule != null">
        cap_rule,
      </if>
      <if test="discount != null">
        discount,
      </if>
      <if test="dataState != null">
        data_state,
      </if>
      <if test="createEmpid != null">
        create_empid,
      </if>
      <if test="createName != null">
        create_name,
      </if>
      <if test="createDate != null">
        create_date,
      </if>
      <if test="modifyEmpid != null">
        modify_empid,
      </if>
      <if test="modifyName != null">
        modify_name,
      </if>
      <if test="modifyDate != null">
        modify_date,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="parkCode != null">
        #{parkCode,jdbcType=VARCHAR},
      </if>
      <if test="custName != null">
        #{custName,jdbcType=VARCHAR},
      </if>
      <if test="cardSequence != null">
        #{cardSequence,jdbcType=VARCHAR},
      </if>
      <if test="cardNo != null">
        #{cardNo,jdbcType=VARCHAR},
      </if>
      <if test="carNumber != null">
        #{carNumber,jdbcType=VARCHAR},
      </if>
      <if test="phone != null">
        #{phone,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        #{address,jdbcType=VARCHAR},
      </if>
      <if test="balance != null">
        #{balance,jdbcType=BIGINT},
      </if>
      <if test="effDate != null">
        #{effDate,jdbcType=TIMESTAMP},
      </if>
      <if test="expDate != null">
        #{expDate,jdbcType=TIMESTAMP},
      </if>
      <if test="detailType != null">
        #{detailType,jdbcType=INTEGER},
      </if>
      <if test="email != null">
        #{email,jdbcType=VARCHAR},
      </if>
      <if test="inArea != null">
        #{inArea,jdbcType=VARCHAR},
      </if>
      <if test="outArea != null">
        #{outArea,jdbcType=VARCHAR},
      </if>
      <if test="capAmount != null">
        #{capAmount,jdbcType=INTEGER},
      </if>
      <if test="capCycle != null">
        #{capCycle,jdbcType=INTEGER},
      </if>
      <if test="capRule != null">
        #{capRule,jdbcType=INTEGER},
      </if>
      <if test="discount != null">
        #{discount,jdbcType=INTEGER},
      </if>
      <if test="dataState != null">
        #{dataState,jdbcType=INTEGER},
      </if>
      <if test="createEmpid != null">
        #{createEmpid,jdbcType=BIGINT},
      </if>
      <if test="createName != null">
        #{createName,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null">
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyEmpid != null">
        #{modifyEmpid,jdbcType=BIGINT},
      </if>
      <if test="modifyName != null">
        #{modifyName,jdbcType=VARCHAR},
      </if>
      <if test="modifyDate != null">
        #{modifyDate,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.zteits.bill.domain.TVipCardCustInfoIrain">
    update t_vip_card_cust_info_irain
    <set>
      <if test="parkCode != null">
        park_code = #{parkCode,jdbcType=VARCHAR},
      </if>
      <if test="custName != null">
        cust_name = #{custName,jdbcType=VARCHAR},
      </if>
      <if test="cardSequence != null">
        card_sequence = #{cardSequence,jdbcType=VARCHAR},
      </if>
      <if test="cardNo != null">
        card_no = #{cardNo,jdbcType=VARCHAR},
      </if>
      <if test="carNumber != null">
        car_number = #{carNumber,jdbcType=VARCHAR},
      </if>
      <if test="phone != null">
        phone = #{phone,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        address = #{address,jdbcType=VARCHAR},
      </if>
      <if test="balance != null">
        balance = #{balance,jdbcType=BIGINT},
      </if>
      <if test="effDate != null">
        eff_date = #{effDate,jdbcType=TIMESTAMP},
      </if>
      <if test="expDate != null">
        exp_date = #{expDate,jdbcType=TIMESTAMP},
      </if>
      <if test="detailType != null">
        detail_type = #{detailType,jdbcType=INTEGER},
      </if>
      <if test="email != null">
        email = #{email,jdbcType=VARCHAR},
      </if>
      <if test="inArea != null">
        in_area = #{inArea,jdbcType=VARCHAR},
      </if>
      <if test="outArea != null">
        out_area = #{outArea,jdbcType=VARCHAR},
      </if>
      <if test="capAmount != null">
        cap_amount = #{capAmount,jdbcType=INTEGER},
      </if>
      <if test="capCycle != null">
        cap_cycle = #{capCycle,jdbcType=INTEGER},
      </if>
      <if test="capRule != null">
        cap_rule = #{capRule,jdbcType=INTEGER},
      </if>
      <if test="discount != null">
        discount = #{discount,jdbcType=INTEGER},
      </if>
      <if test="dataState != null">
        data_state = #{dataState,jdbcType=INTEGER},
      </if>
      <if test="createEmpid != null">
        create_empid = #{createEmpid,jdbcType=BIGINT},
      </if>
      <if test="createName != null">
        create_name = #{createName,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null">
        create_date = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyEmpid != null">
        modify_empid = #{modifyEmpid,jdbcType=BIGINT},
      </if>
      <if test="modifyName != null">
        modify_name = #{modifyName,jdbcType=VARCHAR},
      </if>
      <if test="modifyDate != null">
        modify_date = #{modifyDate,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.zteits.bill.domain.TVipCardCustInfoIrain">
    update t_vip_card_cust_info_irain
    set park_code = #{parkCode,jdbcType=VARCHAR},
      cust_name = #{custName,jdbcType=VARCHAR},
      card_sequence = #{cardSequence,jdbcType=VARCHAR},
      card_no = #{cardNo,jdbcType=VARCHAR},
      car_number = #{carNumber,jdbcType=VARCHAR},
      phone = #{phone,jdbcType=VARCHAR},
      address = #{address,jdbcType=VARCHAR},
      balance = #{balance,jdbcType=BIGINT},
      eff_date = #{effDate,jdbcType=TIMESTAMP},
      exp_date = #{expDate,jdbcType=TIMESTAMP},
      detail_type = #{detailType,jdbcType=INTEGER},
      email = #{email,jdbcType=VARCHAR},
      in_area = #{inArea,jdbcType=VARCHAR},
      out_area = #{outArea,jdbcType=VARCHAR},
      cap_amount = #{capAmount,jdbcType=INTEGER},
      cap_cycle = #{capCycle,jdbcType=INTEGER},
      cap_rule = #{capRule,jdbcType=INTEGER},
      discount = #{discount,jdbcType=INTEGER},
      data_state = #{dataState,jdbcType=INTEGER},
      create_empid = #{createEmpid,jdbcType=BIGINT},
      create_name = #{createName,jdbcType=VARCHAR},
      create_date = #{createDate,jdbcType=TIMESTAMP},
      modify_empid = #{modifyEmpid,jdbcType=BIGINT},
      modify_name = #{modifyName,jdbcType=VARCHAR},
      modify_date = #{modifyDate,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>