懒羊羊
2023-10-17 92cffc135581ce2cf4aecac745ddb88e739c17de
提交 | 用户 | 时间
1ac2bc 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="cn.stylefeng.guns.oauth2.mapper.OauthUserInfoMapper">
4
5     <!-- 通用查询映射结果 -->
6     <resultMap id="BaseResultMap" type="cn.stylefeng.guns.base.oauth2.entity.OauthUserInfo">
7         <id column="oauth_id" property="oauthId" />
8         <result column="user_id" property="userId" />
9         <result column="nick_name" property="nickName" />
10         <result column="avatar" property="avatar" />
11         <result column="blog" property="blog" />
12         <result column="company" property="company" />
13         <result column="location" property="location" />
14         <result column="email" property="email" />
15         <result column="remark" property="remark" />
16         <result column="gender" property="gender" />
17         <result column="source" property="source" />
18         <result column="token" property="token" />
19         <result column="uuid" property="uuid" />
20         <result column="create_time" property="createTime" />
21         <result column="create_user" property="createUser" />
22         <result column="update_time" property="updateTime" />
23         <result column="update_user" property="updateUser" />
24     </resultMap>
25
26     <!-- 通用查询结果列 -->
27     <sql id="Base_Column_List">
28         oauth_id AS "oauthId", user_id AS "userId", nick_name AS "nickName", avatar AS "avatar", blog AS "blog", company AS "company", location AS "location", email AS "email", remark AS "remark", gender AS "gender", source AS "source", token AS "token", uuid AS "uuid", create_time AS "createTime", create_user AS "createUser", update_time AS "updateTime", update_user AS "updateUser"
29     </sql>
30
31
32     <select id="customList" resultType="cn.stylefeng.guns.base.oauth2.model.result.OauthUserInfoResult" parameterType="cn.stylefeng.guns.base.oauth2.model.params.OauthUserInfoParam">
33         select
34         <include refid="Base_Column_List"/>
35         from oauth_user_info where 1 = 1
36     </select>
37
38     <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.base.oauth2.model.params.OauthUserInfoParam">
39         select
40         <include refid="Base_Column_List"/>
41         from oauth_user_info where 1 = 1
42     </select>
43
44     <select id="customPageList" resultType="cn.stylefeng.guns.base.oauth2.model.result.OauthUserInfoResult" parameterType="cn.stylefeng.guns.base.oauth2.model.params.OauthUserInfoParam">
45         select
46         <include refid="Base_Column_List"/>
47         from oauth_user_info where 1 = 1
48     </select>
49
50     <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.base.oauth2.model.params.OauthUserInfoParam">
51         select
52         <include refid="Base_Column_List"/>
53         from oauth_user_info where 1 = 1
54     </select>
55
56 </mapper>