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

com.penging.tms.common.repository.TmsIvmtAmountXrefHistEntityMapper.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.TmsIvmtAmountXrefHistEntityMapper" >
  <resultMap id="BaseResultMap" type="com.penging.tms.common.entity.TmsIvmtAmountXrefHistEntity" >
    <id column="cod_id" property="codId" jdbcType="BIGINT" />
    <result column="cod_ivmt_no" property="codIvmtNo" jdbcType="VARCHAR" />
    <result column="cod_coupon_type" property="codCouponType" jdbcType="INTEGER" />
    <result column="cod_coupon_no" property="codCouponNo" jdbcType="VARCHAR" />
    <result column="txt_coupon_name" property="txtCouponName" jdbcType="VARCHAR" />
    <result column="amt_used" property="amtUsed" jdbcType="DECIMAL" />
    <result column="dat_apply" property="datApply" jdbcType="TIMESTAMP" />
    <result column="cod_coupon_usedno" property="codCouponUsedno" jdbcType="VARCHAR" />
    <result column="ctr_effect_rate" property="ctrEffectRate" jdbcType="DECIMAL" />
    <result column="cod_icon_no" property="codIconNo" jdbcType="VARCHAR" />
    <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_coupon_type, cod_coupon_no, txt_coupon_name, amt_used, dat_apply, 
    cod_coupon_usedno, ctr_effect_rate, cod_icon_no, 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_amount_xref_hist
    where cod_id = #{codId,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from tms_ivmt_amount_xref_hist
    where cod_id = #{codId,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.penging.tms.common.entity.TmsIvmtAmountXrefHistEntity" >
    insert into tms_ivmt_amount_xref_hist (cod_id, cod_ivmt_no, cod_coupon_type, 
      cod_coupon_no, txt_coupon_name, amt_used, 
      dat_apply, cod_coupon_usedno, ctr_effect_rate, 
      cod_icon_no, 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}, #{codCouponType,jdbcType=INTEGER}, 
      #{codCouponNo,jdbcType=VARCHAR}, #{txtCouponName,jdbcType=VARCHAR}, #{amtUsed,jdbcType=DECIMAL}, 
      #{datApply,jdbcType=TIMESTAMP}, #{codCouponUsedno,jdbcType=VARCHAR}, #{ctrEffectRate,jdbcType=DECIMAL}, 
      #{codIconNo,jdbcType=VARCHAR}, #{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.TmsIvmtAmountXrefHistEntity" >
    insert into tms_ivmt_amount_xref_hist
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="codId != null" >
        cod_id,
      </if>
      <if test="codIvmtNo != null" >
        cod_ivmt_no,
      </if>
      <if test="codCouponType != null" >
        cod_coupon_type,
      </if>
      <if test="codCouponNo != null" >
        cod_coupon_no,
      </if>
      <if test="txtCouponName != null" >
        txt_coupon_name,
      </if>
      <if test="amtUsed != null" >
        amt_used,
      </if>
      <if test="datApply != null" >
        dat_apply,
      </if>
      <if test="codCouponUsedno != null" >
        cod_coupon_usedno,
      </if>
      <if test="ctrEffectRate != null" >
        ctr_effect_rate,
      </if>
      <if test="codIconNo != null" >
        cod_icon_no,
      </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="codCouponType != null" >
        #{codCouponType,jdbcType=INTEGER},
      </if>
      <if test="codCouponNo != null" >
        #{codCouponNo,jdbcType=VARCHAR},
      </if>
      <if test="txtCouponName != null" >
        #{txtCouponName,jdbcType=VARCHAR},
      </if>
      <if test="amtUsed != null" >
        #{amtUsed,jdbcType=DECIMAL},
      </if>
      <if test="datApply != null" >
        #{datApply,jdbcType=TIMESTAMP},
      </if>
      <if test="codCouponUsedno != null" >
        #{codCouponUsedno,jdbcType=VARCHAR},
      </if>
      <if test="ctrEffectRate != null" >
        #{ctrEffectRate,jdbcType=DECIMAL},
      </if>
      <if test="codIconNo != null" >
        #{codIconNo,jdbcType=VARCHAR},
      </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.TmsIvmtAmountXrefHistEntity" >
    update tms_ivmt_amount_xref_hist
    <set >
      <if test="codIvmtNo != null" >
        cod_ivmt_no = #{codIvmtNo,jdbcType=VARCHAR},
      </if>
      <if test="codCouponType != null" >
        cod_coupon_type = #{codCouponType,jdbcType=INTEGER},
      </if>
      <if test="codCouponNo != null" >
        cod_coupon_no = #{codCouponNo,jdbcType=VARCHAR},
      </if>
      <if test="txtCouponName != null" >
        txt_coupon_name = #{txtCouponName,jdbcType=VARCHAR},
      </if>
      <if test="amtUsed != null" >
        amt_used = #{amtUsed,jdbcType=DECIMAL},
      </if>
      <if test="datApply != null" >
        dat_apply = #{datApply,jdbcType=TIMESTAMP},
      </if>
      <if test="codCouponUsedno != null" >
        cod_coupon_usedno = #{codCouponUsedno,jdbcType=VARCHAR},
      </if>
      <if test="ctrEffectRate != null" >
        ctr_effect_rate = #{ctrEffectRate,jdbcType=DECIMAL},
      </if>
      <if test="codIconNo != null" >
        cod_icon_no = #{codIconNo,jdbcType=VARCHAR},
      </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.TmsIvmtAmountXrefHistEntity" >
    update tms_ivmt_amount_xref_hist
    set cod_ivmt_no = #{codIvmtNo,jdbcType=VARCHAR},
      cod_coupon_type = #{codCouponType,jdbcType=INTEGER},
      cod_coupon_no = #{codCouponNo,jdbcType=VARCHAR},
      txt_coupon_name = #{txtCouponName,jdbcType=VARCHAR},
      amt_used = #{amtUsed,jdbcType=DECIMAL},
      dat_apply = #{datApply,jdbcType=TIMESTAMP},
      cod_coupon_usedno = #{codCouponUsedno,jdbcType=VARCHAR},
      ctr_effect_rate = #{ctrEffectRate,jdbcType=DECIMAL},
      cod_icon_no = #{codIconNo,jdbcType=VARCHAR},
      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