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

com.penging.tms.common.repository.TmsIvmtProfitEntityMapper.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.TmsIvmtProfitEntityMapper" >
  <resultMap id="BaseResultMap" type="com.penging.tms.common.entity.TmsIvmtProfitEntity" >
    <id column="cod_id" property="codId" jdbcType="BIGINT" />
    <result column="cod_ivmt_no" property="codIvmtNo" jdbcType="VARCHAR" />
    <result column="cod_acct_no" property="codAcctNo" jdbcType="VARCHAR" />
    <result column="cod_cust_id" property="codCustId" jdbcType="VARCHAR" />
    <result column="cod_prod_unit" property="codProdUnit" jdbcType="INTEGER" />
    <result column="cod_ivmt_propotion" property="codIvmtPropotion" jdbcType="DECIMAL" />
    <result column="cod_ivmt_unit" property="codIvmtUnit" jdbcType="INTEGER" />
    <result column="amt_ivmt" property="amtIvmt" jdbcType="DECIMAL" />
    <result column="cod_profit_class" property="codProfitClass" jdbcType="VARCHAR" />
    <result column="amt_profit" property="amtProfit" jdbcType="DECIMAL" />
    <result column="amt_profit_coupon" property="amtProfitCoupon" jdbcType="DECIMAL" />
    <result column="cod_profit_type" property="codProfitType" jdbcType="INTEGER" />
    <result column="dat_comp_start" property="datCompStart" jdbcType="TIMESTAMP" />
    <result column="dat_comp_end" property="datCompEnd" 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_ivmt_no, cod_acct_no, cod_cust_id, cod_prod_unit, cod_ivmt_propotion, 
    cod_ivmt_unit, amt_ivmt, cod_profit_class, amt_profit, amt_profit_coupon, cod_profit_type, 
    dat_comp_start, dat_comp_end, 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_profit
    where cod_id = #{codId,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from tms_ivmt_profit
    where cod_id = #{codId,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.penging.tms.common.entity.TmsIvmtProfitEntity" >
    insert into tms_ivmt_profit (cod_id, cod_ivmt_no, cod_acct_no, 
      cod_cust_id, cod_prod_unit, cod_ivmt_propotion, 
      cod_ivmt_unit, amt_ivmt, cod_profit_class, 
      amt_profit, amt_profit_coupon, cod_profit_type, 
      dat_comp_start, dat_comp_end, dat_create, 
      cod_create_user, cod_create_org, dat_modify, 
      cod_modify_user, cod_modify_org, ctr_update_srlno
      )
    values (#{codId,jdbcType=BIGINT}, #{codIvmtNo,jdbcType=VARCHAR}, #{codAcctNo,jdbcType=VARCHAR}, 
      #{codCustId,jdbcType=VARCHAR}, #{codProdUnit,jdbcType=INTEGER}, #{codIvmtPropotion,jdbcType=DECIMAL}, 
      #{codIvmtUnit,jdbcType=INTEGER}, #{amtIvmt,jdbcType=DECIMAL}, #{codProfitClass,jdbcType=VARCHAR}, 
      #{amtProfit,jdbcType=DECIMAL}, #{amtProfitCoupon,jdbcType=DECIMAL}, #{codProfitType,jdbcType=INTEGER}, 
      #{datCompStart,jdbcType=TIMESTAMP}, #{datCompEnd,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.TmsIvmtProfitEntity" >
    insert into tms_ivmt_profit
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="codId != null" >
        cod_id,
      </if>
      <if test="codIvmtNo != null" >
        cod_ivmt_no,
      </if>
      <if test="codAcctNo != null" >
        cod_acct_no,
      </if>
      <if test="codCustId != null" >
        cod_cust_id,
      </if>
      <if test="codProdUnit != null" >
        cod_prod_unit,
      </if>
      <if test="codIvmtPropotion != null" >
        cod_ivmt_propotion,
      </if>
      <if test="codIvmtUnit != null" >
        cod_ivmt_unit,
      </if>
      <if test="amtIvmt != null" >
        amt_ivmt,
      </if>
      <if test="codProfitClass != null" >
        cod_profit_class,
      </if>
      <if test="amtProfit != null" >
        amt_profit,
      </if>
      <if test="amtProfitCoupon != null" >
        amt_profit_coupon,
      </if>
      <if test="codProfitType != null" >
        cod_profit_type,
      </if>
      <if test="datCompStart != null" >
        dat_comp_start,
      </if>
      <if test="datCompEnd != null" >
        dat_comp_end,
      </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="codIvmtNo != null" >
        #{codIvmtNo,jdbcType=VARCHAR},
      </if>
      <if test="codAcctNo != null" >
        #{codAcctNo,jdbcType=VARCHAR},
      </if>
      <if test="codCustId != null" >
        #{codCustId,jdbcType=VARCHAR},
      </if>
      <if test="codProdUnit != null" >
        #{codProdUnit,jdbcType=INTEGER},
      </if>
      <if test="codIvmtPropotion != null" >
        #{codIvmtPropotion,jdbcType=DECIMAL},
      </if>
      <if test="codIvmtUnit != null" >
        #{codIvmtUnit,jdbcType=INTEGER},
      </if>
      <if test="amtIvmt != null" >
        #{amtIvmt,jdbcType=DECIMAL},
      </if>
      <if test="codProfitClass != null" >
        #{codProfitClass,jdbcType=VARCHAR},
      </if>
      <if test="amtProfit != null" >
        #{amtProfit,jdbcType=DECIMAL},
      </if>
      <if test="amtProfitCoupon != null" >
        #{amtProfitCoupon,jdbcType=DECIMAL},
      </if>
      <if test="codProfitType != null" >
        #{codProfitType,jdbcType=INTEGER},
      </if>
      <if test="datCompStart != null" >
        #{datCompStart,jdbcType=TIMESTAMP},
      </if>
      <if test="datCompEnd != null" >
        #{datCompEnd,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.TmsIvmtProfitEntity" >
    update tms_ivmt_profit
    <set >
      <if test="codIvmtNo != null" >
        cod_ivmt_no = #{codIvmtNo,jdbcType=VARCHAR},
      </if>
      <if test="codAcctNo != null" >
        cod_acct_no = #{codAcctNo,jdbcType=VARCHAR},
      </if>
      <if test="codCustId != null" >
        cod_cust_id = #{codCustId,jdbcType=VARCHAR},
      </if>
      <if test="codProdUnit != null" >
        cod_prod_unit = #{codProdUnit,jdbcType=INTEGER},
      </if>
      <if test="codIvmtPropotion != null" >
        cod_ivmt_propotion = #{codIvmtPropotion,jdbcType=DECIMAL},
      </if>
      <if test="codIvmtUnit != null" >
        cod_ivmt_unit = #{codIvmtUnit,jdbcType=INTEGER},
      </if>
      <if test="amtIvmt != null" >
        amt_ivmt = #{amtIvmt,jdbcType=DECIMAL},
      </if>
      <if test="codProfitClass != null" >
        cod_profit_class = #{codProfitClass,jdbcType=VARCHAR},
      </if>
      <if test="amtProfit != null" >
        amt_profit = #{amtProfit,jdbcType=DECIMAL},
      </if>
      <if test="amtProfitCoupon != null" >
        amt_profit_coupon = #{amtProfitCoupon,jdbcType=DECIMAL},
      </if>
      <if test="codProfitType != null" >
        cod_profit_type = #{codProfitType,jdbcType=INTEGER},
      </if>
      <if test="datCompStart != null" >
        dat_comp_start = #{datCompStart,jdbcType=TIMESTAMP},
      </if>
      <if test="datCompEnd != null" >
        dat_comp_end = #{datCompEnd,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.TmsIvmtProfitEntity" >
    update tms_ivmt_profit
    set cod_ivmt_no = #{codIvmtNo,jdbcType=VARCHAR},
      cod_acct_no = #{codAcctNo,jdbcType=VARCHAR},
      cod_cust_id = #{codCustId,jdbcType=VARCHAR},
      cod_prod_unit = #{codProdUnit,jdbcType=INTEGER},
      cod_ivmt_propotion = #{codIvmtPropotion,jdbcType=DECIMAL},
      cod_ivmt_unit = #{codIvmtUnit,jdbcType=INTEGER},
      amt_ivmt = #{amtIvmt,jdbcType=DECIMAL},
      cod_profit_class = #{codProfitClass,jdbcType=VARCHAR},
      amt_profit = #{amtProfit,jdbcType=DECIMAL},
      amt_profit_coupon = #{amtProfitCoupon,jdbcType=DECIMAL},
      cod_profit_type = #{codProfitType,jdbcType=INTEGER},
      dat_comp_start = #{datCompStart,jdbcType=TIMESTAMP},
      dat_comp_end = #{datCompEnd,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