MsgProviderMapper.xml 6.14 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.MsgProviderMapper" >
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.common.entity.MsgProvider" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="mpId" property="mpid" jdbcType="VARCHAR" />
    <result column="mpName" property="mpname" jdbcType="VARCHAR" />
    <result column="mpDesc" property="mpdesc" jdbcType="VARCHAR" />
    <result column="mpUrl" property="mpurl" jdbcType="VARCHAR" />
    <result column="mpAuthType" property="mpauthtype" jdbcType="CHAR" />
    <result column="mpServiceType" property="mpservicetype" jdbcType="CHAR" />
    <result column="mpRemark" property="mpremark" jdbcType="VARCHAR" />
    <result column="mpUpdater" property="mpupdater" jdbcType="INTEGER" />
    <result column="mpUpTime" property="mpuptime" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    `mpId`, `mpName`, `mpDesc`, `mpUrl`, `mpAuthType`, `mpServiceType`, `mpRemark`, `mpUpdater`, 
    `mpUpTime`
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from smMsgProvider
    where `mpId` = #{mpid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from smMsgProvider
    where `mpId` = #{mpid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="cn.runsa.crmapp.common.entity.MsgProvider" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into smMsgProvider (`mpId`, `mpName`, `mpDesc`, 
      `mpUrl`, `mpAuthType`, `mpServiceType`, 
      `mpRemark`, `mpUpdater`, `mpUpTime`
      )
    values (#{mpid,jdbcType=VARCHAR}, #{mpname,jdbcType=VARCHAR}, #{mpdesc,jdbcType=VARCHAR}, 
      #{mpurl,jdbcType=VARCHAR}, #{mpauthtype,jdbcType=CHAR}, #{mpservicetype,jdbcType=CHAR}, 
      #{mpremark,jdbcType=VARCHAR}, #{mpupdater,jdbcType=INTEGER}, #{mpuptime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.common.entity.MsgProvider" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into smMsgProvider
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="mpid != null" >
        `mpId`,
      </if>
      <if test="mpname != null" >
        `mpName`,
      </if>
      <if test="mpdesc != null" >
        `mpDesc`,
      </if>
      <if test="mpurl != null" >
        `mpUrl`,
      </if>
      <if test="mpauthtype != null" >
        `mpAuthType`,
      </if>
      <if test="mpservicetype != null" >
        `mpServiceType`,
      </if>
      <if test="mpremark != null" >
        `mpRemark`,
      </if>
      <if test="mpupdater != null" >
        `mpUpdater`,
      </if>
      <if test="mpuptime != null" >
        `mpUpTime`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="mpid != null" >
        #{mpid,jdbcType=VARCHAR},
      </if>
      <if test="mpname != null" >
        #{mpname,jdbcType=VARCHAR},
      </if>
      <if test="mpdesc != null" >
        #{mpdesc,jdbcType=VARCHAR},
      </if>
      <if test="mpurl != null" >
        #{mpurl,jdbcType=VARCHAR},
      </if>
      <if test="mpauthtype != null" >
        #{mpauthtype,jdbcType=CHAR},
      </if>
      <if test="mpservicetype != null" >
        #{mpservicetype,jdbcType=CHAR},
      </if>
      <if test="mpremark != null" >
        #{mpremark,jdbcType=VARCHAR},
      </if>
      <if test="mpupdater != null" >
        #{mpupdater,jdbcType=INTEGER},
      </if>
      <if test="mpuptime != null" >
        #{mpuptime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="cn.runsa.crmapp.common.entity.MsgProvider" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update smMsgProvider
    <set >
      <if test="mpname != null" >
        `mpName` = #{mpname,jdbcType=VARCHAR},
      </if>
      <if test="mpdesc != null" >
        `mpDesc` = #{mpdesc,jdbcType=VARCHAR},
      </if>
      <if test="mpurl != null" >
        `mpUrl` = #{mpurl,jdbcType=VARCHAR},
      </if>
      <if test="mpauthtype != null" >
        `mpAuthType` = #{mpauthtype,jdbcType=CHAR},
      </if>
      <if test="mpservicetype != null" >
        `mpServiceType` = #{mpservicetype,jdbcType=CHAR},
      </if>
      <if test="mpremark != null" >
        `mpRemark` = #{mpremark,jdbcType=VARCHAR},
      </if>
      <if test="mpupdater != null" >
        `mpUpdater` = #{mpupdater,jdbcType=INTEGER},
      </if>
      <if test="mpuptime != null" >
        `mpUpTime` = #{mpuptime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where `mpId` = #{mpid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.runsa.crmapp.common.entity.MsgProvider" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update smMsgProvider
    set `mpName` = #{mpname,jdbcType=VARCHAR},
      `mpDesc` = #{mpdesc,jdbcType=VARCHAR},
      `mpUrl` = #{mpurl,jdbcType=VARCHAR},
      `mpAuthType` = #{mpauthtype,jdbcType=CHAR},
      `mpServiceType` = #{mpservicetype,jdbcType=CHAR},
      `mpRemark` = #{mpremark,jdbcType=VARCHAR},
      `mpUpdater` = #{mpupdater,jdbcType=INTEGER},
      `mpUpTime` = #{mpuptime,jdbcType=TIMESTAMP}
    where `mpId` = #{mpid,jdbcType=VARCHAR}
  </update>
</mapper>