<?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.pcloud.book.weixinclock.dao.impl.WeixinClockBrowseDaoImpl" >
    <resultMap id="BaseResultMap" type="com.pcloud.book.weixinclock.entity.WeixinClockBrowse">
        <id column="id" property="id" jdbcType="BIGINT" />
        <result column="weixin_clock_id" property="weixinClockId" jdbcType="BIGINT" />
        <result column="wx_group_id" property="wxGroupId" jdbcType="VARCHAR" />
        <result column="wechat_user_id" property="wechatUserId" jdbcType="BIGINT" />
        <result column="browse_time" property="browseTime" jdbcType="TIMESTAMP" />
        <result column="ip_address" property="ipAddress" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List" >
        id, weixin_clock_id, wx_group_id, wechat_user_id, browse_time, ip_address
    </sql>

    <insert id="insert" parameterType="com.pcloud.book.weixinclock.entity.WeixinClockBrowse" useGeneratedKeys="true" keyProperty="id">
        insert into weixin_clock_browse (weixin_clock_id, wx_group_id, wechat_user_id, browse_time, ip_address)
        values (#{weixinClockId}, #{wxGroupId}, #{wechatUserId}, #{browseTime}, #{ipAddress})
    </insert>
</mapper>
