<?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.manage.dao.Power_Login_SetMapper" >
  <resultMap id="BaseResultMap" type="com.manage.entity.Power_Login_Set" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="context" property="context" jdbcType="VARCHAR" />
    <result column="logo_path" property="logoPath" jdbcType="VARCHAR" />
    <result column="logo_width" property="logoWidth" jdbcType="INTEGER" />
    <result column="logo_height" property="logoHeight" jdbcType="INTEGER" />
    <result column="pic1_path" property="pic1Path" jdbcType="VARCHAR" />
    <result column="foot_context" property="footContext" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, context, logo_path, logo_width, logo_height, pic1_path, foot_context
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select
    <include refid="Base_Column_List" />
    from power_login_set
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from power_login_set
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.manage.entity.Power_Login_Set" >
    insert into power_login_set (id, context, logo_path,
      logo_width, logo_height, pic1_path,
      foot_context)
    values (#{id,jdbcType=INTEGER}, #{context,jdbcType=VARCHAR}, #{logoPath,jdbcType=VARCHAR},
      #{logoWidth,jdbcType=INTEGER}, #{logoHeight,jdbcType=INTEGER}, #{pic1Path,jdbcType=VARCHAR},
      #{footContext,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.manage.entity.Power_Login_Set" >
    insert into power_login_set
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="context != null" >
        context,
      </if>
      <if test="logoPath != null" >
        logo_path,
      </if>
      <if test="logoWidth != null" >
        logo_width,
      </if>
      <if test="logoHeight != null" >
        logo_height,
      </if>
      <if test="pic1Path != null" >
        pic1_path,
      </if>
      <if test="footContext != null" >
        foot_context,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=INTEGER},
      </if>
      <if test="context != null" >
        #{context,jdbcType=VARCHAR},
      </if>
      <if test="logoPath != null" >
        #{logoPath,jdbcType=VARCHAR},
      </if>
      <if test="logoWidth != null" >
        #{logoWidth,jdbcType=INTEGER},
      </if>
      <if test="logoHeight != null" >
        #{logoHeight,jdbcType=INTEGER},
      </if>
      <if test="pic1Path != null" >
        #{pic1Path,jdbcType=VARCHAR},
      </if>
      <if test="footContext != null" >
        #{footContext,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.manage.entity.Power_Login_Set" >
    update power_login_set
    <set >
      <if test="context != null" >
        context = #{context,jdbcType=VARCHAR},
      </if>
      <if test="logoPath != null" >
        logo_path = #{logoPath,jdbcType=VARCHAR},
      </if>
      <if test="logoWidth != null" >
        logo_width = #{logoWidth,jdbcType=INTEGER},
      </if>
      <if test="logoHeight != null" >
        logo_height = #{logoHeight,jdbcType=INTEGER},
      </if>
      <if test="pic1Path != null" >
        pic1_path = #{pic1Path,jdbcType=VARCHAR},
      </if>
      <if test="footContext != null" >
        foot_context = #{footContext,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.manage.entity.Power_Login_Set" >
    update power_login_set
    set context = #{context,jdbcType=VARCHAR},
      logo_path = #{logoPath,jdbcType=VARCHAR},
      logo_width = #{logoWidth,jdbcType=INTEGER},
      logo_height = #{logoHeight,jdbcType=INTEGER},
      pic1_path = #{pic1Path,jdbcType=VARCHAR},
      foot_context = #{footContext,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>