MsgChannelMapper.xml 8.99 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.MsgChannelMapper">
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.common.entity.MsgChannel">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="mcId" jdbcType="INTEGER" property="mcid" />
    <result column="mcName" jdbcType="VARCHAR" property="mcname" />
    <result column="mcDesc" jdbcType="VARCHAR" property="mcdesc" />
    <result column="mcType" jdbcType="SMALLINT" property="mctype" />
    <result column="mcProvider" jdbcType="VARCHAR" property="mcprovider" />
    <result column="GZH_ID" jdbcType="VARCHAR" property="gzhId" />
    <result column="mcAccount" jdbcType="VARCHAR" property="mcaccount" />
    <result column="mcPassword" jdbcType="VARCHAR" property="mcpassword" />
    <result column="mcProtocol" jdbcType="SMALLINT" property="mcprotocol" />
    <result column="mcRemain" jdbcType="INTEGER" property="mcremain" />
    <result column="mtremark" jdbcType="VARCHAR" property="classname" />
    <!--<result column="mtRemark" jdbcType="VARCHAR" property="mtremark" />-->
    <result column="plId" jdbcType="INTEGER" property="plid" />
    <result column="beId" jdbcType="INTEGER" property="beid" />
    <result column="bebLimit" jdbcType="BIT" property="beblimit" />
    <result column="mtUpdater" jdbcType="INTEGER" property="mtupdater" />
    <result column="mtUpTime" jdbcType="TIMESTAMP" property="mtuptime" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    `mcId`, `mcName`, `mcDesc`, `mcType`, `mcProvider`, `GZH_ID`, `mcAccount`, `mcPassword`, 
    `mcProtocol`, `mcRemain`, `mtRemark`, `plId`, `beId`, `bebLimit`, `mtUpdater`, `mtUpTime`
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from smMsgChannel
    where `mcId` = #{mcid,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 smMsgChannel
    where `mcId` = #{mcid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="cn.runsa.crmapp.common.entity.MsgChannel">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into smMsgChannel (`mcId`, `mcName`, `mcDesc`, 
      `mcType`, `mcProvider`, `GZH_ID`, 
      `mcAccount`, `mcPassword`, `mcProtocol`, 
      `mcRemain`, `mtRemark`, `plId`, 
      `beId`, `bebLimit`, `mtUpdater`, 
      `mtUpTime`)
    values (#{mcid,jdbcType=INTEGER}, #{mcname,jdbcType=VARCHAR}, #{mcdesc,jdbcType=VARCHAR}, 
      #{mctype,jdbcType=SMALLINT}, #{mcprovider,jdbcType=VARCHAR}, #{gzhId,jdbcType=VARCHAR}, 
      #{mcaccount,jdbcType=VARCHAR}, #{mcpassword,jdbcType=VARCHAR}, #{mcprotocol,jdbcType=SMALLINT}, 
      #{mcremain,jdbcType=INTEGER}, #{mtremark,jdbcType=VARCHAR}, #{plid,jdbcType=INTEGER}, 
      #{beid,jdbcType=INTEGER}, #{beblimit,jdbcType=BIT}, #{mtupdater,jdbcType=INTEGER}, 
      #{mtuptime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.common.entity.MsgChannel">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into smMsgChannel
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="mcid != null">
        `mcId`,
      </if>
      <if test="mcname != null">
        `mcName`,
      </if>
      <if test="mcdesc != null">
        `mcDesc`,
      </if>
      <if test="mctype != null">
        `mcType`,
      </if>
      <if test="mcprovider != null">
        `mcProvider`,
      </if>
      <if test="gzhId != null">
        `GZH_ID`,
      </if>
      <if test="mcaccount != null">
        `mcAccount`,
      </if>
      <if test="mcpassword != null">
        `mcPassword`,
      </if>
      <if test="mcprotocol != null">
        `mcProtocol`,
      </if>
      <if test="mcremain != null">
        `mcRemain`,
      </if>
      <if test="mtremark != null">
        `mtRemark`,
      </if>
      <if test="plid != null">
        `plId`,
      </if>
      <if test="beid != null">
        `beId`,
      </if>
      <if test="beblimit != null">
        `bebLimit`,
      </if>
      <if test="mtupdater != null">
        `mtUpdater`,
      </if>
      <if test="mtuptime != null">
        `mtUpTime`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="mcid != null">
        #{mcid,jdbcType=INTEGER},
      </if>
      <if test="mcname != null">
        #{mcname,jdbcType=VARCHAR},
      </if>
      <if test="mcdesc != null">
        #{mcdesc,jdbcType=VARCHAR},
      </if>
      <if test="mctype != null">
        #{mctype,jdbcType=SMALLINT},
      </if>
      <if test="mcprovider != null">
        #{mcprovider,jdbcType=VARCHAR},
      </if>
      <if test="gzhId != null">
        #{gzhId,jdbcType=VARCHAR},
      </if>
      <if test="mcaccount != null">
        #{mcaccount,jdbcType=VARCHAR},
      </if>
      <if test="mcpassword != null">
        #{mcpassword,jdbcType=VARCHAR},
      </if>
      <if test="mcprotocol != null">
        #{mcprotocol,jdbcType=SMALLINT},
      </if>
      <if test="mcremain != null">
        #{mcremain,jdbcType=INTEGER},
      </if>
      <if test="mtremark != null">
        #{mtremark,jdbcType=VARCHAR},
      </if>
      <if test="plid != null">
        #{plid,jdbcType=INTEGER},
      </if>
      <if test="beid != null">
        #{beid,jdbcType=INTEGER},
      </if>
      <if test="beblimit != null">
        #{beblimit,jdbcType=BIT},
      </if>
      <if test="mtupdater != null">
        #{mtupdater,jdbcType=INTEGER},
      </if>
      <if test="mtuptime != null">
        #{mtuptime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="cn.runsa.crmapp.common.entity.MsgChannel">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update smMsgChannel
    <set>
      <if test="mcname != null">
        `mcName` = #{mcname,jdbcType=VARCHAR},
      </if>
      <if test="mcdesc != null">
        `mcDesc` = #{mcdesc,jdbcType=VARCHAR},
      </if>
      <if test="mctype != null">
        `mcType` = #{mctype,jdbcType=SMALLINT},
      </if>
      <if test="mcprovider != null">
        `mcProvider` = #{mcprovider,jdbcType=VARCHAR},
      </if>
      <if test="gzhId != null">
        `GZH_ID` = #{gzhId,jdbcType=VARCHAR},
      </if>
      <if test="mcaccount != null">
        `mcAccount` = #{mcaccount,jdbcType=VARCHAR},
      </if>
      <if test="mcpassword != null">
        `mcPassword` = #{mcpassword,jdbcType=VARCHAR},
      </if>
      <if test="mcprotocol != null">
        `mcProtocol` = #{mcprotocol,jdbcType=SMALLINT},
      </if>
      <if test="mcremain != null">
        `mcRemain` = #{mcremain,jdbcType=INTEGER},
      </if>
      <if test="mtremark != null">
        `mtRemark` = #{mtremark,jdbcType=VARCHAR},
      </if>
      <if test="plid != null">
        `plId` = #{plid,jdbcType=INTEGER},
      </if>
      <if test="beid != null">
        `beId` = #{beid,jdbcType=INTEGER},
      </if>
      <if test="beblimit != null">
        `bebLimit` = #{beblimit,jdbcType=BIT},
      </if>
      <if test="mtupdater != null">
        `mtUpdater` = #{mtupdater,jdbcType=INTEGER},
      </if>
      <if test="mtuptime != null">
        `mtUpTime` = #{mtuptime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where `mcId` = #{mcid,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.runsa.crmapp.common.entity.MsgChannel">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update smMsgChannel
    set `mcName` = #{mcname,jdbcType=VARCHAR},
      `mcDesc` = #{mcdesc,jdbcType=VARCHAR},
      `mcType` = #{mctype,jdbcType=SMALLINT},
      `mcProvider` = #{mcprovider,jdbcType=VARCHAR},
      `GZH_ID` = #{gzhId,jdbcType=VARCHAR},
      `mcAccount` = #{mcaccount,jdbcType=VARCHAR},
      `mcPassword` = #{mcpassword,jdbcType=VARCHAR},
      `mcProtocol` = #{mcprotocol,jdbcType=SMALLINT},
      `mcRemain` = #{mcremain,jdbcType=INTEGER},
      `mtRemark` = #{mtremark,jdbcType=VARCHAR},
      `plId` = #{plid,jdbcType=INTEGER},
      `beId` = #{beid,jdbcType=INTEGER},
      `bebLimit` = #{beblimit,jdbcType=BIT},
      `mtUpdater` = #{mtupdater,jdbcType=INTEGER},
      `mtUpTime` = #{mtuptime,jdbcType=TIMESTAMP}
    where `mcId` = #{mcid,jdbcType=INTEGER}
  </update>
</mapper>