<?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.gic.haoban.manage.service.dao.mapper.TabUserLoginLogMapper" >
  <resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabUserLoginLog" >
    <id column="user_login_log" property="userLoginLog" jdbcType="VARCHAR" />
    <result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR" />
    <result column="version" property="version" jdbcType="VARCHAR" />
    <result column="SDK_version" property="sdkVersion" jdbcType="VARCHAR" />
    <result column="system" property="system" jdbcType="VARCHAR" />
    <result column="brand" property="brand" jdbcType="VARCHAR" />
    <result column="model" property="model" jdbcType="VARCHAR" />
    <result column="platform" property="platform" jdbcType="VARCHAR" />
    <result column="system_info" property="systemInfo" jdbcType="VARCHAR" />
    <result column="status" property="status" jdbcType="INTEGER" />
    <result column="staff_id" property="staffId" jdbcType="VARCHAR" />
    <result column="phone_number" property="phoneNumber" jdbcType="VARCHAR" />
    <result column="hbversion" property="hbversion" jdbcType="VARCHAR" />
    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
    <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Base_Column_List" >
    user_login_log, wx_enterprise_id, version, SDK_version, system, brand, model, platform, 
    system_info, status, staff_id, create_time, update_time,hbversion,phone_number
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select 
    <include refid="Base_Column_List" />
    from tab_haoban_user_login_log
    where user_login_log = #{userLoginLog,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from tab_haoban_user_login_log
    where user_login_log = #{userLoginLog,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabUserLoginLog" >
    insert into tab_haoban_user_login_log (user_login_log, wx_enterprise_id, version, 
      SDK_version, system, brand, 
      model, platform, system_info, 
      status, staff_id, create_time, 
      update_time,hbversion,phone_number)
    values (#{userLoginLog,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{version,jdbcType=VARCHAR}, 
      #{sdkVersion,jdbcType=VARCHAR}, #{system,jdbcType=VARCHAR}, #{brand,jdbcType=VARCHAR}, 
      #{model,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR}, #{systemInfo,jdbcType=VARCHAR}, 
      #{status,jdbcType=INTEGER}, #{staffId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateTime,jdbcType=TIMESTAMP},#{hbversion},#{phoneNumber})
  </insert>
  <insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabUserLoginLog" >
    insert into tab_haoban_user_login_log
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="userLoginLog != null" >
        user_login_log,
      </if>
      <if test="wxEnterpriseId != null" >
        wx_enterprise_id,
      </if>
      <if test="version != null" >
        version,
      </if>
      <if test="sdkVersion != null" >
        SDK_version,
      </if>
      <if test="system != null" >
        system,
      </if>
      <if test="brand != null" >
        brand,
      </if>
      <if test="model != null" >
        model,
      </if>
      <if test="platform != null" >
        platform,
      </if>
      <if test="systemInfo != null" >
        system_info,
      </if>
      <if test="status != null" >
        status,
      </if>
      <if test="staffId != null" >
        staff_id,
      </if>
      <if test="createTime != null" >
        create_time,
      </if>
      <if test="updateTime != null" >
        update_time,
      </if>
       <if test="hbversion != null" >
        hbversion,
      </if>
       <if test="phoneNumber != null" >
        phone_number,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="userLoginLog != null" >
        #{userLoginLog,jdbcType=VARCHAR},
      </if>
      <if test="wxEnterpriseId != null" >
        #{wxEnterpriseId,jdbcType=VARCHAR},
      </if>
      <if test="version != null" >
        #{version,jdbcType=VARCHAR},
      </if>
      <if test="sdkVersion != null" >
        #{sdkVersion,jdbcType=VARCHAR},
      </if>
      <if test="system != null" >
        #{system,jdbcType=VARCHAR},
      </if>
      <if test="brand != null" >
        #{brand,jdbcType=VARCHAR},
      </if>
      <if test="model != null" >
        #{model,jdbcType=VARCHAR},
      </if>
      <if test="platform != null" >
        #{platform,jdbcType=VARCHAR},
      </if>
      <if test="systemInfo != null" >
        #{systemInfo,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        #{status,jdbcType=INTEGER},
      </if>
      <if test="staffId != null" >
        #{staffId,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null" >
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null" >
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="hbversion != null" >
        #{hbversion},
      </if>
      <if test="phoneNumber != null" >
        #{phoneNumber},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabUserLoginLog" >
    update tab_haoban_user_login_log
    <set >
      <if test="wxEnterpriseId != null" >
        wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
      </if>
      <if test="version != null" >
        version = #{version,jdbcType=VARCHAR},
      </if>
      <if test="sdkVersion != null" >
        SDK_version = #{sdkVersion,jdbcType=VARCHAR},
      </if>
      <if test="system != null" >
        system = #{system,jdbcType=VARCHAR},
      </if>
      <if test="brand != null" >
        brand = #{brand,jdbcType=VARCHAR},
      </if>
      <if test="model != null" >
        model = #{model,jdbcType=VARCHAR},
      </if>
      <if test="platform != null" >
        platform = #{platform,jdbcType=VARCHAR},
      </if>
      <if test="systemInfo != null" >
        system_info = #{systemInfo,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        status = #{status,jdbcType=INTEGER},
      </if>
      <if test="staffId != null" >
        staff_id = #{staffId,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null" >
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null" >
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where user_login_log = #{userLoginLog,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.gic.haoban.manage.service.entity.TabUserLoginLog" >
    update tab_haoban_user_login_log
    set wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
      version = #{version,jdbcType=VARCHAR},
      SDK_version = #{sdkVersion,jdbcType=VARCHAR},
      system = #{system,jdbcType=VARCHAR},
      brand = #{brand,jdbcType=VARCHAR},
      model = #{model,jdbcType=VARCHAR},
      platform = #{platform,jdbcType=VARCHAR},
      system_info = #{systemInfo,jdbcType=VARCHAR},
      status = #{status,jdbcType=INTEGER},
      staff_id = #{staffId,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP}
    where user_login_log = #{userLoginLog,jdbcType=VARCHAR}
  </update>
</mapper>