提交 | 用户 | 时间
|
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.sys.modular.rest.mapper.RestUserPosMapper"> |
|
4 |
|
|
5 |
<!-- 通用查询映射结果 --> |
|
6 |
<resultMap id="BaseResultMap" type="cn.stylefeng.guns.sys.modular.rest.entity.RestUserPos"> |
|
7 |
<id column="user_pos_id" property="userPosId"/> |
|
8 |
<result column="user_id" property="userId"/> |
|
9 |
<result column="pos_id" property="posId"/> |
|
10 |
</resultMap> |
|
11 |
|
|
12 |
<!-- 通用查询结果列 --> |
|
13 |
<sql id="Base_Column_List"> |
|
14 |
user_pos_id AS "userPosId", user_id AS "userId", pos_id AS "posId" |
|
15 |
</sql> |
|
16 |
|
|
17 |
|
|
18 |
<select id="customList" resultType="cn.stylefeng.guns.sys.modular.system.model.result.UserPosResult" parameterType="cn.stylefeng.guns.sys.modular.system.model.params.UserPosParam"> |
|
19 |
select |
|
20 |
<include refid="Base_Column_List"/> |
|
21 |
from sys_user_pos where 1 = 1 |
|
22 |
</select> |
|
23 |
|
|
24 |
<select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.sys.modular.system.model.params.UserPosParam"> |
|
25 |
select |
|
26 |
<include refid="Base_Column_List"/> |
|
27 |
from sys_user_pos where 1 = 1 |
|
28 |
</select> |
|
29 |
|
|
30 |
<select id="customPageList" resultType="cn.stylefeng.guns.sys.modular.system.model.result.UserPosResult" parameterType="cn.stylefeng.guns.sys.modular.system.model.params.UserPosParam"> |
|
31 |
select |
|
32 |
<include refid="Base_Column_List"/> |
|
33 |
from sys_user_pos where 1 = 1 |
|
34 |
</select> |
|
35 |
|
|
36 |
<select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.sys.modular.system.model.params.UserPosParam"> |
|
37 |
select |
|
38 |
<include refid="Base_Column_List"/> |
|
39 |
from sys_user_pos where 1 = 1 |
|
40 |
</select> |
|
41 |
|
|
42 |
</mapper> |