PointsCashMapper.xml 3.18 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.points.mapper.PointsCashMapper" >
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.points.entity.PointsCash" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="PNT_ID" property="pntId" jdbcType="BIGINT" />
    <result column="PLC_ID" property="plcId" jdbcType="BIGINT" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    `PNT_ID`, `PLC_ID`
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from crm_points_set_cash
    where `PNT_ID` = #{pntId,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from crm_points_set_cash
    where `PNT_ID` = #{pntId,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="cn.runsa.crmapp.points.entity.PointsCash" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_points_set_cash (`PNT_ID`, `PLC_ID`)
    values (#{pntId,jdbcType=BIGINT}, #{plcId,jdbcType=BIGINT})
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.points.entity.PointsCash" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_points_set_cash
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="pntId != null" >
        `PNT_ID`,
      </if>
      <if test="plcId != null" >
        `PLC_ID`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="pntId != null" >
        #{pntId,jdbcType=BIGINT},
      </if>
      <if test="plcId != null" >
        #{plcId,jdbcType=BIGINT},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="cn.runsa.crmapp.points.entity.PointsCash" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update crm_points_set_cash
    <set >
      <if test="plcId != null" >
        `PLC_ID` = #{plcId,jdbcType=BIGINT},
      </if>
    </set>
    where `PNT_ID` = #{pntId,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.runsa.crmapp.points.entity.PointsCash" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update crm_points_set_cash
    set `PLC_ID` = #{plcId,jdbcType=BIGINT}
    where `PNT_ID` = #{pntId,jdbcType=BIGINT}
  </update>
</mapper>