EventActionProcessMapper.xml 7.37 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.common.mapper.EventActionProcessMapper" >
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.common.entity.EventActionProcess" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="UNION_ID" property="unionId" jdbcType="INTEGER" />
    <result column="ACTION" property="action" jdbcType="INTEGER" />
    <result column="TEMPLATE" property="template" jdbcType="INTEGER" />
    <result column="EXE_TYPE" property="exeType" jdbcType="TINYINT" />
    <result column="EXE_NAME" property="exeName" jdbcType="VARCHAR" />
    <result column="PSR_TYPE" property="psrType" jdbcType="TINYINT" />
    <result column="PSR_NAME" property="psrName" jdbcType="VARCHAR" />
  </resultMap>
  <resultMap id="ResultMapWithBLOBs" type="cn.runsa.crmapp.common.entity.EventActionProcess" extends="BaseResultMap" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="EXECUTER" property="executer" jdbcType="LONGVARBINARY" />
    <result column="PARSER" property="parser" jdbcType="LONGVARBINARY" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    `UNION_ID`, `ACTION`, `TEMPLATE`, `EXE_TYPE`, `EXE_NAME`, `PSR_TYPE`, `PSR_NAME`
  </sql>
  <sql id="Blob_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    `EXECUTER`, `PARSER`
  </sql>
  <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from crm_event_action_process
    where `UNION_ID` = #{unionId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from crm_event_action_process
    where `UNION_ID` = #{unionId,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="cn.runsa.crmapp.common.entity.EventActionProcess" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_event_action_process (`UNION_ID`, `ACTION`, `TEMPLATE`, 
      `EXE_TYPE`, `EXE_NAME`, `PSR_TYPE`, 
      `PSR_NAME`, `EXECUTER`, `PARSER`
      )
    values (#{unionId,jdbcType=INTEGER}, #{action,jdbcType=INTEGER}, #{template,jdbcType=INTEGER}, 
      #{exeType,jdbcType=TINYINT}, #{exeName,jdbcType=VARCHAR}, #{psrType,jdbcType=TINYINT}, 
      #{psrName,jdbcType=VARCHAR}, #{executer,jdbcType=LONGVARBINARY}, #{parser,jdbcType=LONGVARBINARY}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.common.entity.EventActionProcess" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_event_action_process
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="unionId != null" >
        `UNION_ID`,
      </if>
      <if test="action != null" >
        `ACTION`,
      </if>
      <if test="template != null" >
        `TEMPLATE`,
      </if>
      <if test="exeType != null" >
        `EXE_TYPE`,
      </if>
      <if test="exeName != null" >
        `EXE_NAME`,
      </if>
      <if test="psrType != null" >
        `PSR_TYPE`,
      </if>
      <if test="psrName != null" >
        `PSR_NAME`,
      </if>
      <if test="executer != null" >
        `EXECUTER`,
      </if>
      <if test="parser != null" >
        `PARSER`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="unionId != null" >
        #{unionId,jdbcType=INTEGER},
      </if>
      <if test="action != null" >
        #{action,jdbcType=INTEGER},
      </if>
      <if test="template != null" >
        #{template,jdbcType=INTEGER},
      </if>
      <if test="exeType != null" >
        #{exeType,jdbcType=TINYINT},
      </if>
      <if test="exeName != null" >
        #{exeName,jdbcType=VARCHAR},
      </if>
      <if test="psrType != null" >
        #{psrType,jdbcType=TINYINT},
      </if>
      <if test="psrName != null" >
        #{psrName,jdbcType=VARCHAR},
      </if>
      <if test="executer != null" >
        #{executer,jdbcType=LONGVARBINARY},
      </if>
      <if test="parser != null" >
        #{parser,jdbcType=LONGVARBINARY},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="cn.runsa.crmapp.common.entity.EventActionProcess" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update crm_event_action_process
    <set >
      <if test="action != null" >
        `ACTION` = #{action,jdbcType=INTEGER},
      </if>
      <if test="template != null" >
        `TEMPLATE` = #{template,jdbcType=INTEGER},
      </if>
      <if test="exeType != null" >
        `EXE_TYPE` = #{exeType,jdbcType=TINYINT},
      </if>
      <if test="exeName != null" >
        `EXE_NAME` = #{exeName,jdbcType=VARCHAR},
      </if>
      <if test="psrType != null" >
        `PSR_TYPE` = #{psrType,jdbcType=TINYINT},
      </if>
      <if test="psrName != null" >
        `PSR_NAME` = #{psrName,jdbcType=VARCHAR},
      </if>
      <if test="executer != null" >
        `EXECUTER` = #{executer,jdbcType=LONGVARBINARY},
      </if>
      <if test="parser != null" >
        `PARSER` = #{parser,jdbcType=LONGVARBINARY},
      </if>
    </set>
    where `UNION_ID` = #{unionId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="cn.runsa.crmapp.common.entity.EventActionProcess" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update crm_event_action_process
    set `ACTION` = #{action,jdbcType=INTEGER},
      `TEMPLATE` = #{template,jdbcType=INTEGER},
      `EXE_TYPE` = #{exeType,jdbcType=TINYINT},
      `EXE_NAME` = #{exeName,jdbcType=VARCHAR},
      `PSR_TYPE` = #{psrType,jdbcType=TINYINT},
      `PSR_NAME` = #{psrName,jdbcType=VARCHAR},
      `EXECUTER` = #{executer,jdbcType=LONGVARBINARY},
      `PARSER` = #{parser,jdbcType=LONGVARBINARY}
    where `UNION_ID` = #{unionId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.runsa.crmapp.common.entity.EventActionProcess" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update crm_event_action_process
    set `ACTION` = #{action,jdbcType=INTEGER},
      `TEMPLATE` = #{template,jdbcType=INTEGER},
      `EXE_TYPE` = #{exeType,jdbcType=TINYINT},
      `EXE_NAME` = #{exeName,jdbcType=VARCHAR},
      `PSR_TYPE` = #{psrType,jdbcType=TINYINT},
      `PSR_NAME` = #{psrName,jdbcType=VARCHAR}
    where `UNION_ID` = #{unionId,jdbcType=INTEGER}
  </update>
</mapper>