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

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

There is a newer version: 1.0.v201602292337
Show 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_reserve_no" property="codReserveNo" jdbcType="VARCHAR" />
    <result column="cod_cust_id" property="codCustId" jdbcType="VARCHAR" />
    <result column="cod_prod_category" property="codProdCategory" jdbcType="INTEGER" />
    <result column="cod_reserve_type" property="codReserveType" jdbcType="INTEGER" />
    <result column="cod_prod_unit" property="codProdUnit" jdbcType="INTEGER" />
    <result column="cod_reserve_portion" property="codReservePortion" jdbcType="INTEGER" />
    <result column="amt_reserve" property="amtReserve" jdbcType="DECIMAL" />
    <result column="ctr_min_profit" property="ctrMinProfit" jdbcType="DECIMAL" />
    <result column="ctr_max_profit" property="ctrMaxProfit" jdbcType="DECIMAL" />
    <result column="ctr_min_unit" property="ctrMinUnit" jdbcType="INTEGER" />
    <result column="ctr_max_unit" property="ctrMaxUnit" jdbcType="INTEGER" />
    <result column="ctr_min_ivmt_amount" property="ctrMinIvmtAmount" jdbcType="DECIMAL" />
    <result column="ctr_max_ivmt_amount" property="ctrMaxIvmtAmount" jdbcType="DECIMAL" />
    <result column="ctr_start_profit_date" property="ctrStartProfitDate" jdbcType="TIMESTAMP" />
    <result column="ctr_end_profit_date" property="ctrEndProfitDate" jdbcType="TIMESTAMP" />
    <result column="ctr_min_balance" property="ctrMinBalance" jdbcType="DECIMAL" />
    <result column="ctr_start_reserve_date" property="ctrStartReserveDate" jdbcType="TIMESTAMP" />
    <result column="ctr_end_reserve_date" property="ctrEndReserveDate" jdbcType="TIMESTAMP" />
    <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_reserve_no, cod_cust_id, cod_prod_category, cod_reserve_type, cod_prod_unit, 
    cod_reserve_portion, amt_reserve, ctr_min_profit, ctr_max_profit, ctr_min_unit, ctr_max_unit, 
    ctr_min_ivmt_amount, ctr_max_ivmt_amount, ctr_start_profit_date, ctr_end_profit_date, 
    ctr_min_balance, ctr_start_reserve_date, ctr_end_reserve_date, 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_reserve_no, cod_cust_id, 
      cod_prod_category, cod_reserve_type, cod_prod_unit, 
      cod_reserve_portion, amt_reserve, ctr_min_profit, 
      ctr_max_profit, ctr_min_unit, ctr_max_unit, 
      ctr_min_ivmt_amount, ctr_max_ivmt_amount, ctr_start_profit_date, 
      ctr_end_profit_date, ctr_min_balance, ctr_start_reserve_date, 
      ctr_end_reserve_date, dat_create, cod_create_user, 
      cod_create_org, dat_modify, cod_modify_user, 
      cod_modify_org, ctr_update_srlno)
    values (#{codId,jdbcType=BIGINT}, #{codReserveNo,jdbcType=VARCHAR}, #{codCustId,jdbcType=VARCHAR}, 
      #{codProdCategory,jdbcType=INTEGER}, #{codReserveType,jdbcType=INTEGER}, #{codProdUnit,jdbcType=INTEGER}, 
      #{codReservePortion,jdbcType=INTEGER}, #{amtReserve,jdbcType=DECIMAL}, #{ctrMinProfit,jdbcType=DECIMAL}, 
      #{ctrMaxProfit,jdbcType=DECIMAL}, #{ctrMinUnit,jdbcType=INTEGER}, #{ctrMaxUnit,jdbcType=INTEGER}, 
      #{ctrMinIvmtAmount,jdbcType=DECIMAL}, #{ctrMaxIvmtAmount,jdbcType=DECIMAL}, #{ctrStartProfitDate,jdbcType=TIMESTAMP}, 
      #{ctrEndProfitDate,jdbcType=TIMESTAMP}, #{ctrMinBalance,jdbcType=DECIMAL}, #{ctrStartReserveDate,jdbcType=TIMESTAMP}, 
      #{ctrEndReserveDate,jdbcType=TIMESTAMP}, #{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="codReserveNo != null" >
        cod_reserve_no,
      </if>
      <if test="codCustId != null" >
        cod_cust_id,
      </if>
      <if test="codProdCategory != null" >
        cod_prod_category,
      </if>
      <if test="codReserveType != null" >
        cod_reserve_type,
      </if>
      <if test="codProdUnit != null" >
        cod_prod_unit,
      </if>
      <if test="codReservePortion != null" >
        cod_reserve_portion,
      </if>
      <if test="amtReserve != null" >
        amt_reserve,
      </if>
      <if test="ctrMinProfit != null" >
        ctr_min_profit,
      </if>
      <if test="ctrMaxProfit != null" >
        ctr_max_profit,
      </if>
      <if test="ctrMinUnit != null" >
        ctr_min_unit,
      </if>
      <if test="ctrMaxUnit != null" >
        ctr_max_unit,
      </if>
      <if test="ctrMinIvmtAmount != null" >
        ctr_min_ivmt_amount,
      </if>
      <if test="ctrMaxIvmtAmount != null" >
        ctr_max_ivmt_amount,
      </if>
      <if test="ctrStartProfitDate != null" >
        ctr_start_profit_date,
      </if>
      <if test="ctrEndProfitDate != null" >
        ctr_end_profit_date,
      </if>
      <if test="ctrMinBalance != null" >
        ctr_min_balance,
      </if>
      <if test="ctrStartReserveDate != null" >
        ctr_start_reserve_date,
      </if>
      <if test="ctrEndReserveDate != null" >
        ctr_end_reserve_date,
      </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="codReserveNo != null" >
        #{codReserveNo,jdbcType=VARCHAR},
      </if>
      <if test="codCustId != null" >
        #{codCustId,jdbcType=VARCHAR},
      </if>
      <if test="codProdCategory != null" >
        #{codProdCategory,jdbcType=INTEGER},
      </if>
      <if test="codReserveType != null" >
        #{codReserveType,jdbcType=INTEGER},
      </if>
      <if test="codProdUnit != null" >
        #{codProdUnit,jdbcType=INTEGER},
      </if>
      <if test="codReservePortion != null" >
        #{codReservePortion,jdbcType=INTEGER},
      </if>
      <if test="amtReserve != null" >
        #{amtReserve,jdbcType=DECIMAL},
      </if>
      <if test="ctrMinProfit != null" >
        #{ctrMinProfit,jdbcType=DECIMAL},
      </if>
      <if test="ctrMaxProfit != null" >
        #{ctrMaxProfit,jdbcType=DECIMAL},
      </if>
      <if test="ctrMinUnit != null" >
        #{ctrMinUnit,jdbcType=INTEGER},
      </if>
      <if test="ctrMaxUnit != null" >
        #{ctrMaxUnit,jdbcType=INTEGER},
      </if>
      <if test="ctrMinIvmtAmount != null" >
        #{ctrMinIvmtAmount,jdbcType=DECIMAL},
      </if>
      <if test="ctrMaxIvmtAmount != null" >
        #{ctrMaxIvmtAmount,jdbcType=DECIMAL},
      </if>
      <if test="ctrStartProfitDate != null" >
        #{ctrStartProfitDate,jdbcType=TIMESTAMP},
      </if>
      <if test="ctrEndProfitDate != null" >
        #{ctrEndProfitDate,jdbcType=TIMESTAMP},
      </if>
      <if test="ctrMinBalance != null" >
        #{ctrMinBalance,jdbcType=DECIMAL},
      </if>
      <if test="ctrStartReserveDate != null" >
        #{ctrStartReserveDate,jdbcType=TIMESTAMP},
      </if>
      <if test="ctrEndReserveDate != null" >
        #{ctrEndReserveDate,jdbcType=TIMESTAMP},
      </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="codReserveNo != null" >
        cod_reserve_no = #{codReserveNo,jdbcType=VARCHAR},
      </if>
      <if test="codCustId != null" >
        cod_cust_id = #{codCustId,jdbcType=VARCHAR},
      </if>
      <if test="codProdCategory != null" >
        cod_prod_category = #{codProdCategory,jdbcType=INTEGER},
      </if>
      <if test="codReserveType != null" >
        cod_reserve_type = #{codReserveType,jdbcType=INTEGER},
      </if>
      <if test="codProdUnit != null" >
        cod_prod_unit = #{codProdUnit,jdbcType=INTEGER},
      </if>
      <if test="codReservePortion != null" >
        cod_reserve_portion = #{codReservePortion,jdbcType=INTEGER},
      </if>
      <if test="amtReserve != null" >
        amt_reserve = #{amtReserve,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="ctrMinUnit != null" >
        ctr_min_unit = #{ctrMinUnit,jdbcType=INTEGER},
      </if>
      <if test="ctrMaxUnit != null" >
        ctr_max_unit = #{ctrMaxUnit,jdbcType=INTEGER},
      </if>
      <if test="ctrMinIvmtAmount != null" >
        ctr_min_ivmt_amount = #{ctrMinIvmtAmount,jdbcType=DECIMAL},
      </if>
      <if test="ctrMaxIvmtAmount != null" >
        ctr_max_ivmt_amount = #{ctrMaxIvmtAmount,jdbcType=DECIMAL},
      </if>
      <if test="ctrStartProfitDate != null" >
        ctr_start_profit_date = #{ctrStartProfitDate,jdbcType=TIMESTAMP},
      </if>
      <if test="ctrEndProfitDate != null" >
        ctr_end_profit_date = #{ctrEndProfitDate,jdbcType=TIMESTAMP},
      </if>
      <if test="ctrMinBalance != null" >
        ctr_min_balance = #{ctrMinBalance,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="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_reserve_no = #{codReserveNo,jdbcType=VARCHAR},
      cod_cust_id = #{codCustId,jdbcType=VARCHAR},
      cod_prod_category = #{codProdCategory,jdbcType=INTEGER},
      cod_reserve_type = #{codReserveType,jdbcType=INTEGER},
      cod_prod_unit = #{codProdUnit,jdbcType=INTEGER},
      cod_reserve_portion = #{codReservePortion,jdbcType=INTEGER},
      amt_reserve = #{amtReserve,jdbcType=DECIMAL},
      ctr_min_profit = #{ctrMinProfit,jdbcType=DECIMAL},
      ctr_max_profit = #{ctrMaxProfit,jdbcType=DECIMAL},
      ctr_min_unit = #{ctrMinUnit,jdbcType=INTEGER},
      ctr_max_unit = #{ctrMaxUnit,jdbcType=INTEGER},
      ctr_min_ivmt_amount = #{ctrMinIvmtAmount,jdbcType=DECIMAL},
      ctr_max_ivmt_amount = #{ctrMaxIvmtAmount,jdbcType=DECIMAL},
      ctr_start_profit_date = #{ctrStartProfitDate,jdbcType=TIMESTAMP},
      ctr_end_profit_date = #{ctrEndProfitDate,jdbcType=TIMESTAMP},
      ctr_min_balance = #{ctrMinBalance,jdbcType=DECIMAL},
      ctr_start_reserve_date = #{ctrStartReserveDate,jdbcType=TIMESTAMP},
      ctr_end_reserve_date = #{ctrEndReserveDate,jdbcType=TIMESTAMP},
      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 - 2024 Weber Informatics LLC | Privacy Policy