<?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.TbPlussSystemconfigMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussSystemconfig">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="propertyKey" jdbcType="VARCHAR" property="propertykey" />
    <result column="propertyValue" jdbcType="VARCHAR" property="propertyvalue" />
    <result column="propertyDesc" jdbcType="VARCHAR" property="propertydesc" />
    <result column="propertyIndex" jdbcType="VARCHAR" property="propertyindex" />
    <result column="systemId" jdbcType="VARCHAR" property="systemid" />
  </resultMap>
  <sql id="Base_Column_List">
    id, propertyKey, propertyValue, propertyDesc, propertyIndex, systemId
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_systemconfig
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_systemconfig
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussSystemconfig">
    insert into tb_pluss_systemconfig (id, propertyKey, propertyValue, 
      propertyDesc, propertyIndex, systemId
      )
    values (#{id,jdbcType=INTEGER}, #{propertykey,jdbcType=VARCHAR}, #{propertyvalue,jdbcType=VARCHAR}, 
      #{propertydesc,jdbcType=VARCHAR}, #{propertyindex,jdbcType=VARCHAR}, #{systemid,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussSystemconfig">
    insert into tb_pluss_systemconfig
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="propertykey != null">
        propertyKey,
      </if>
      <if test="propertyvalue != null">
        propertyValue,
      </if>
      <if test="propertydesc != null">
        propertyDesc,
      </if>
      <if test="propertyindex != null">
        propertyIndex,
      </if>
      <if test="systemid != null">
        systemId,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="propertykey != null">
        #{propertykey,jdbcType=VARCHAR},
      </if>
      <if test="propertyvalue != null">
        #{propertyvalue,jdbcType=VARCHAR},
      </if>
      <if test="propertydesc != null">
        #{propertydesc,jdbcType=VARCHAR},
      </if>
      <if test="propertyindex != null">
        #{propertyindex,jdbcType=VARCHAR},
      </if>
      <if test="systemid != null">
        #{systemid,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussSystemconfig">
    update tb_pluss_systemconfig
    <set>
      <if test="propertykey != null">
        propertyKey = #{propertykey,jdbcType=VARCHAR},
      </if>
      <if test="propertyvalue != null">
        propertyValue = #{propertyvalue,jdbcType=VARCHAR},
      </if>
      <if test="propertydesc != null">
        propertyDesc = #{propertydesc,jdbcType=VARCHAR},
      </if>
      <if test="propertyindex != null">
        propertyIndex = #{propertyindex,jdbcType=VARCHAR},
      </if>
      <if test="systemid != null">
        systemId = #{systemid,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussSystemconfig">
    update tb_pluss_systemconfig
    set propertyKey = #{propertykey,jdbcType=VARCHAR},
      propertyValue = #{propertyvalue,jdbcType=VARCHAR},
      propertyDesc = #{propertydesc,jdbcType=VARCHAR},
      propertyIndex = #{propertyindex,jdbcType=VARCHAR},
      systemId = #{systemid,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>