OrderCouponsMapper.xml 1.86 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="cn.runsa.crmapp.coupon.mapper.OrderCouponsMapper" >
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.coupon.entity.OrderCoupons" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="RCPT_ID" property="rcptId" jdbcType="VARCHAR" />
    <result column="CPN_ID" property="cpnId" jdbcType="VARCHAR" />
    <result column="CPL_ID" property="cplId" jdbcType="VARCHAR" />
  </resultMap>
  <insert id="insert" parameterType="cn.runsa.crmapp.coupon.entity.OrderCoupons" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_order_coupons (`RCPT_ID`, `CPN_ID`, `CPL_ID`
      )
    values (#{rcptId,jdbcType=VARCHAR}, #{cpnId,jdbcType=VARCHAR}, #{cplId,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.coupon.entity.OrderCoupons" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_order_coupons
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="rcptId != null" >
        `RCPT_ID`,
      </if>
      <if test="cpnId != null" >
        `CPN_ID`,
      </if>
      <if test="cplId != null" >
        `CPL_ID`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="rcptId != null" >
        #{rcptId,jdbcType=VARCHAR},
      </if>
      <if test="cpnId != null" >
        #{cpnId,jdbcType=VARCHAR},
      </if>
      <if test="cplId != null" >
        #{cplId,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
</mapper>