All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.penging.tms.common.repository.TmsIvmtAutoEntityMapper.xml Maven / Gradle / Ivy

The newest version!
<?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.penging.tms.common.repository.TmsIvmtAutoEntityMapper" >
  <resultMap id="BaseResultMap" type="com.penging.tms.common.entity.TmsIvmtAutoEntity" >
    <id column="cod_id" property="codId" jdbcType="BIGINT" />
    <result column="cod_cust_code" property="codCustCode" jdbcType="VARCHAR" />
    <result column="amt_autobid" property="amtAutobid" jdbcType="DECIMAL" />
    <result column="amt_min_balance" property="amtMinBalance" jdbcType="DECIMAL" />
    <result column="ctr_min_profit" property="ctrMinProfit" jdbcType="DECIMAL" />
    <result column="ctr_max_profit" property="ctrMaxProfit" jdbcType="DECIMAL" />
    <result column="ctr_start_reserve_date" property="ctrStartReserveDate" jdbcType="TIMESTAMP" />
    <result column="ctr_end_reserve_date" property="ctrEndReserveDate" jdbcType="TIMESTAMP" />
    <result column="cod_prod_type" property="codProdType" jdbcType="INTEGER" />
    <result column="flg_activate" property="flgActivate" jdbcType="CHAR" />
    <result column="flg_use_vc" property="flgUseVc" jdbcType="CHAR" />
    <result column="ctr_loan_term_min" property="ctrLoanTermMin" jdbcType="INTEGER" />
    <result column="ctr_loan_term_max" property="ctrLoanTermMax" jdbcType="INTEGER" />
    <result column="dat_create" property="datCreate" jdbcType="TIMESTAMP" />
    <result column="cod_create_user" property="codCreateUser" jdbcType="VARCHAR" />
    <result column="cod_create_org" property="codCreateOrg" jdbcType="VARCHAR" />
    <result column="dat_modify" property="datModify" jdbcType="TIMESTAMP" />
    <result column="cod_modify_user" property="codModifyUser" jdbcType="VARCHAR" />
    <result column="cod_modify_org" property="codModifyOrg" jdbcType="VARCHAR" />
    <result column="ctr_update_srlno" property="ctrUpdateSrlno" jdbcType="INTEGER" />
  </resultMap>
  <sql id="Base_Column_List" >
    cod_id, cod_cust_code, amt_autobid, amt_min_balance, ctr_min_profit, ctr_max_profit, 
    ctr_start_reserve_date, ctr_end_reserve_date, cod_prod_type, flg_activate, flg_use_vc, 
    ctr_loan_term_min, ctr_loan_term_max, dat_create, cod_create_user, cod_create_org, 
    dat_modify, cod_modify_user, cod_modify_org, ctr_update_srlno
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    select 
    <include refid="Base_Column_List" />
    from tms_ivmt_auto
    where cod_id = #{codId,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from tms_ivmt_auto
    where cod_id = #{codId,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.penging.tms.common.entity.TmsIvmtAutoEntity" >
    insert into tms_ivmt_auto (cod_id, cod_cust_code, amt_autobid, 
      amt_min_balance, ctr_min_profit, ctr_max_profit, 
      ctr_start_reserve_date, ctr_end_reserve_date, 
      cod_prod_type, flg_activate, flg_use_vc, 
      ctr_loan_term_min, ctr_loan_term_max, dat_create, 
      cod_create_user, cod_create_org, dat_modify, 
      cod_modify_user, cod_modify_org, ctr_update_srlno
      )
    values (#{codId,jdbcType=BIGINT}, #{codCustCode,jdbcType=VARCHAR}, #{amtAutobid,jdbcType=DECIMAL}, 
      #{amtMinBalance,jdbcType=DECIMAL}, #{ctrMinProfit,jdbcType=DECIMAL}, #{ctrMaxProfit,jdbcType=DECIMAL}, 
      #{ctrStartReserveDate,jdbcType=TIMESTAMP}, #{ctrEndReserveDate,jdbcType=TIMESTAMP}, 
      #{codProdType,jdbcType=INTEGER}, #{flgActivate,jdbcType=CHAR}, #{flgUseVc,jdbcType=CHAR}, 
      #{ctrLoanTermMin,jdbcType=INTEGER}, #{ctrLoanTermMax,jdbcType=INTEGER}, #{datCreate,jdbcType=TIMESTAMP}, 
      #{codCreateUser,jdbcType=VARCHAR}, #{codCreateOrg,jdbcType=VARCHAR}, #{datModify,jdbcType=TIMESTAMP}, 
      #{codModifyUser,jdbcType=VARCHAR}, #{codModifyOrg,jdbcType=VARCHAR}, #{ctrUpdateSrlno,jdbcType=INTEGER}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.penging.tms.common.entity.TmsIvmtAutoEntity" >
    insert into tms_ivmt_auto
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="codId != null" >
        cod_id,
      </if>
      <if test="codCustCode != null" >
        cod_cust_code,
      </if>
      <if test="amtAutobid != null" >
        amt_autobid,
      </if>
      <if test="amtMinBalance != null" >
        amt_min_balance,
      </if>
      <if test="ctrMinProfit != null" >
        ctr_min_profit,
      </if>
      <if test="ctrMaxProfit != null" >
        ctr_max_profit,
      </if>
      <if test="ctrStartReserveDate != null" >
        ctr_start_reserve_date,
      </if>
      <if test="ctrEndReserveDate != null" >
        ctr_end_reserve_date,
      </if>
      <if test="codProdType != null" >
        cod_prod_type,
      </if>
      <if test="flgActivate != null" >
        flg_activate,
      </if>
      <if test="flgUseVc != null" >
        flg_use_vc,
      </if>
      <if test="ctrLoanTermMin != null" >
        ctr_loan_term_min,
      </if>
      <if test="ctrLoanTermMax != null" >
        ctr_loan_term_max,
      </if>
      <if test="datCreate != null" >
        dat_create,
      </if>
      <if test="codCreateUser != null" >
        cod_create_user,
      </if>
      <if test="codCreateOrg != null" >
        cod_create_org,
      </if>
      <if test="datModify != null" >
        dat_modify,
      </if>
      <if test="codModifyUser != null" >
        cod_modify_user,
      </if>
      <if test="codModifyOrg != null" >
        cod_modify_org,
      </if>
      <if test="ctrUpdateSrlno != null" >
        ctr_update_srlno,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="codId != null" >
        #{codId,jdbcType=BIGINT},
      </if>
      <if test="codCustCode != null" >
        #{codCustCode,jdbcType=VARCHAR},
      </if>
      <if test="amtAutobid != null" >
        #{amtAutobid,jdbcType=DECIMAL},
      </if>
      <if test="amtMinBalance != null" >
        #{amtMinBalance,jdbcType=DECIMAL},
      </if>
      <if test="ctrMinProfit != null" >
        #{ctrMinProfit,jdbcType=DECIMAL},
      </if>
      <if test="ctrMaxProfit != null" >
        #{ctrMaxProfit,jdbcType=DECIMAL},
      </if>
      <if test="ctrStartReserveDate != null" >
        #{ctrStartReserveDate,jdbcType=TIMESTAMP},
      </if>
      <if test="ctrEndReserveDate != null" >
        #{ctrEndReserveDate,jdbcType=TIMESTAMP},
      </if>
      <if test="codProdType != null" >
        #{codProdType,jdbcType=INTEGER},
      </if>
      <if test="flgActivate != null" >
        #{flgActivate,jdbcType=CHAR},
      </if>
      <if test="flgUseVc != null" >
        #{flgUseVc,jdbcType=CHAR},
      </if>
      <if test="ctrLoanTermMin != null" >
        #{ctrLoanTermMin,jdbcType=INTEGER},
      </if>
      <if test="ctrLoanTermMax != null" >
        #{ctrLoanTermMax,jdbcType=INTEGER},
      </if>
      <if test="datCreate != null" >
        #{datCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="codCreateUser != null" >
        #{codCreateUser,jdbcType=VARCHAR},
      </if>
      <if test="codCreateOrg != null" >
        #{codCreateOrg,jdbcType=VARCHAR},
      </if>
      <if test="datModify != null" >
        #{datModify,jdbcType=TIMESTAMP},
      </if>
      <if test="codModifyUser != null" >
        #{codModifyUser,jdbcType=VARCHAR},
      </if>
      <if test="codModifyOrg != null" >
        #{codModifyOrg,jdbcType=VARCHAR},
      </if>
      <if test="ctrUpdateSrlno != null" >
        #{ctrUpdateSrlno,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.penging.tms.common.entity.TmsIvmtAutoEntity" >
    update tms_ivmt_auto
    <set >
      <if test="codCustCode != null" >
        cod_cust_code = #{codCustCode,jdbcType=VARCHAR},
      </if>
      <if test="amtAutobid != null" >
        amt_autobid = #{amtAutobid,jdbcType=DECIMAL},
      </if>
      <if test="amtMinBalance != null" >
        amt_min_balance = #{amtMinBalance,jdbcType=DECIMAL},
      </if>
      <if test="ctrMinProfit != null" >
        ctr_min_profit = #{ctrMinProfit,jdbcType=DECIMAL},
      </if>
      <if test="ctrMaxProfit != null" >
        ctr_max_profit = #{ctrMaxProfit,jdbcType=DECIMAL},
      </if>
      <if test="ctrStartReserveDate != null" >
        ctr_start_reserve_date = #{ctrStartReserveDate,jdbcType=TIMESTAMP},
      </if>
      <if test="ctrEndReserveDate != null" >
        ctr_end_reserve_date = #{ctrEndReserveDate,jdbcType=TIMESTAMP},
      </if>
      <if test="codProdType != null" >
        cod_prod_type = #{codProdType,jdbcType=INTEGER},
      </if>
      <if test="flgActivate != null" >
        flg_activate = #{flgActivate,jdbcType=CHAR},
      </if>
      <if test="flgUseVc != null" >
        flg_use_vc = #{flgUseVc,jdbcType=CHAR},
      </if>
      <if test="ctrLoanTermMin != null" >
        ctr_loan_term_min = #{ctrLoanTermMin,jdbcType=INTEGER},
      </if>
      <if test="ctrLoanTermMax != null" >
        ctr_loan_term_max = #{ctrLoanTermMax,jdbcType=INTEGER},
      </if>
      <if test="datCreate != null" >
        dat_create = #{datCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="codCreateUser != null" >
        cod_create_user = #{codCreateUser,jdbcType=VARCHAR},
      </if>
      <if test="codCreateOrg != null" >
        cod_create_org = #{codCreateOrg,jdbcType=VARCHAR},
      </if>
      <if test="datModify != null" >
        dat_modify = #{datModify,jdbcType=TIMESTAMP},
      </if>
      <if test="codModifyUser != null" >
        cod_modify_user = #{codModifyUser,jdbcType=VARCHAR},
      </if>
      <if test="codModifyOrg != null" >
        cod_modify_org = #{codModifyOrg,jdbcType=VARCHAR},
      </if>
      <if test="ctrUpdateSrlno != null" >
        ctr_update_srlno = #{ctrUpdateSrlno,jdbcType=INTEGER},
      </if>
    </set>
    where cod_id = #{codId,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.penging.tms.common.entity.TmsIvmtAutoEntity" >
    update tms_ivmt_auto
    set cod_cust_code = #{codCustCode,jdbcType=VARCHAR},
      amt_autobid = #{amtAutobid,jdbcType=DECIMAL},
      amt_min_balance = #{amtMinBalance,jdbcType=DECIMAL},
      ctr_min_profit = #{ctrMinProfit,jdbcType=DECIMAL},
      ctr_max_profit = #{ctrMaxProfit,jdbcType=DECIMAL},
      ctr_start_reserve_date = #{ctrStartReserveDate,jdbcType=TIMESTAMP},
      ctr_end_reserve_date = #{ctrEndReserveDate,jdbcType=TIMESTAMP},
      cod_prod_type = #{codProdType,jdbcType=INTEGER},
      flg_activate = #{flgActivate,jdbcType=CHAR},
      flg_use_vc = #{flgUseVc,jdbcType=CHAR},
      ctr_loan_term_min = #{ctrLoanTermMin,jdbcType=INTEGER},
      ctr_loan_term_max = #{ctrLoanTermMax,jdbcType=INTEGER},
      dat_create = #{datCreate,jdbcType=TIMESTAMP},
      cod_create_user = #{codCreateUser,jdbcType=VARCHAR},
      cod_create_org = #{codCreateOrg,jdbcType=VARCHAR},
      dat_modify = #{datModify,jdbcType=TIMESTAMP},
      cod_modify_user = #{codModifyUser,jdbcType=VARCHAR},
      cod_modify_org = #{codModifyOrg,jdbcType=VARCHAR},
      ctr_update_srlno = #{ctrUpdateSrlno,jdbcType=INTEGER}
    where cod_id = #{codId,jdbcType=BIGINT}
  </update>
</mapper>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy