User_Mapper.xml 989 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?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="cn.bugstack.xfg.frame.dao.IUserDao">
    
    <resultMap id="userMap" type="cn.bugstack.xfg.frame.domain.po.User">
        <result column="id" property="id"/>
        <result column="user_id" property="userId"/>
        <result column="user_nickname" property="userNickname"/>
        <result column="user_head" property="userHead"/>
        <result column="user_password" property="userPassword"/>
        <result column="create_time" property="createTime"/>
        <result column="update_time" property="updateTime"/>
    </resultMap>

    <select id="queryUserList" parameterType="cn.bugstack.xfg.frame.domain.po.User" resultMap="userMap">
        SELECT id, user_id, user_nickname, user_head, user_password, create_time, update_time
        FROM user
        ORDER BY ID DESC
        LIMIT 10
    </select>

</mapper>