<?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="com.chaozhanggui.dao.system.dao.TbPlussAccessChannelWxConfMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussAccessChannelWxConf">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="orgId" jdbcType="VARCHAR" property="orgid" />
    <result column="type" jdbcType="VARCHAR" property="type" />
    <result column="subAppid" jdbcType="VARCHAR" property="subappid" />
    <result column="accountType" jdbcType="VARCHAR" property="accounttype" />
    <result column="jsapiPath" jdbcType="VARCHAR" property="jsapipath" />
    <result column="uniFlag" jdbcType="VARCHAR" property="uniflag" />
    <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
    <result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
  </resultMap>
  <sql id="Base_Column_List">
    id, orgId, type, subAppid, accountType, jsapiPath, uniFlag, createTime, updateTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_access_channel_wx_conf
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_access_channel_wx_conf
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussAccessChannelWxConf">
    insert into tb_pluss_access_channel_wx_conf (id, orgId, type, 
      subAppid, accountType, jsapiPath, 
      uniFlag, createTime, updateTime
      )
    values (#{id,jdbcType=INTEGER}, #{orgid,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, 
      #{subappid,jdbcType=VARCHAR}, #{accounttype,jdbcType=VARCHAR}, #{jsapipath,jdbcType=VARCHAR}, 
      #{uniflag,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussAccessChannelWxConf">
    insert into tb_pluss_access_channel_wx_conf
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="orgid != null">
        orgId,
      </if>
      <if test="type != null">
        type,
      </if>
      <if test="subappid != null">
        subAppid,
      </if>
      <if test="accounttype != null">
        accountType,
      </if>
      <if test="jsapipath != null">
        jsapiPath,
      </if>
      <if test="uniflag != null">
        uniFlag,
      </if>
      <if test="createtime != null">
        createTime,
      </if>
      <if test="updatetime != null">
        updateTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="orgid != null">
        #{orgid,jdbcType=VARCHAR},
      </if>
      <if test="type != null">
        #{type,jdbcType=VARCHAR},
      </if>
      <if test="subappid != null">
        #{subappid,jdbcType=VARCHAR},
      </if>
      <if test="accounttype != null">
        #{accounttype,jdbcType=VARCHAR},
      </if>
      <if test="jsapipath != null">
        #{jsapipath,jdbcType=VARCHAR},
      </if>
      <if test="uniflag != null">
        #{uniflag,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        #{updatetime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussAccessChannelWxConf">
    update tb_pluss_access_channel_wx_conf
    <set>
      <if test="orgid != null">
        orgId = #{orgid,jdbcType=VARCHAR},
      </if>
      <if test="type != null">
        type = #{type,jdbcType=VARCHAR},
      </if>
      <if test="subappid != null">
        subAppid = #{subappid,jdbcType=VARCHAR},
      </if>
      <if test="accounttype != null">
        accountType = #{accounttype,jdbcType=VARCHAR},
      </if>
      <if test="jsapipath != null">
        jsapiPath = #{jsapipath,jdbcType=VARCHAR},
      </if>
      <if test="uniflag != null">
        uniFlag = #{uniflag,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        createTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        updateTime = #{updatetime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussAccessChannelWxConf">
    update tb_pluss_access_channel_wx_conf
    set orgId = #{orgid,jdbcType=VARCHAR},
      type = #{type,jdbcType=VARCHAR},
      subAppid = #{subappid,jdbcType=VARCHAR},
      accountType = #{accounttype,jdbcType=VARCHAR},
      jsapiPath = #{jsapipath,jdbcType=VARCHAR},
      uniFlag = #{uniflag,jdbcType=VARCHAR},
      createTime = #{createtime,jdbcType=TIMESTAMP},
      updateTime = #{updatetime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>