UserMapper.java
4.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/*
* @(#)UserMapper.java
*
* Copyright (c) 2014-2017 xiniunet 版权所有
* xiniunet. All rights reserved.
*
* This software is the confidential and proprietary
* information of xiniunet.
* ("Confidential Information"). You shall not disclose
* such Confidential Information and shall use it only
* in accordance with the terms of the contract agreement
* you entered into with xiniunet.
*/
package com.xiniunet.service.railway.dal;
import com.xiniunet.framework.annotation.MyBatisRepository;
import com.xiniunet.framework.security.Passport;
import com.xiniunet.railway.domain.LineStation;
import com.xiniunet.service.railway.po.*;
import org.apache.ibatis.annotations.Param;
import com.xiniunet.railway.request.*;
import java.util.List;
/**
* 用户的数据库操作接口.
* @author xiniunet
*/
@MyBatisRepository("RailwayUserMapper")
public interface UserMapper extends UserMapperAuto {
/**
* 更新实体对象
*
* @param request 请求对象
* @return 受影响的记录条数
*/
long update(@Param("request")UserPO request , @Param("passport")Passport passport);
/**
* 更新用户权限
*
* @param request 请求对象
* @return 受影响的记录条数
*/
long updatePermission(@Param("request")UserUpdateRequest request , @Param("passport")Passport passport);
/**
* 模糊搜索对象列表
*
* @param request 请求对象
* @param passport 用户护照
* @return 实体对象列表集合
*/
List<UserPO> search(@Param("request")UserSearchRequest request, @Param("passport")Passport passport);
/**
* 模糊搜索对象列表总数
*
* @param request 请求对象
* @param passport 用户护照
* @return 实体对象列表集合总数
*/
long searchCount(@Param("request")UserSearchRequest request,@Param("passport")Passport passport);
/**
* 高级查询对象列表
*
* @param request 请求对象
* @param passport 用户护照
* @return 实体对象列表集合
*/
List<UserPO> find(@Param("request")UserFindRequest request, @Param("passport")Passport passport);
/**
* 查询公司及组织信息
*
* @param account 账号
* @param passport 用户护照
* @return 实体对象列表集合
*/
UserPO getInfomationByAccount(@Param("account")String account, @Param("passport")Passport passport);
/**
* 高级查询对象列表总数
*
* @param request 请求对象
* @param passport 用户护照
* @return 实体对象列表集合总数
*/
long findCount(@Param("request")UserFindRequest request,@Param("passport")Passport passport);
List<UserListPO> findUserList(@Param("request")UserGetInfoByAccountRequest request, @Param("passport")Passport passport);
/**
* 模糊搜索对象列表总数
*
* @param request 请求对象
* @param passport 用户护照
* @return 实体对象列表集合总数
*/
long searchUserCount(@Param("request")UserSearchRequest request,@Param("passport")Passport passport);
/**
* 模糊搜索对象列表总数
*
* @param request 请求对象
* @return 实体对象列表集合总数
*/
long searchUserCountPwd(@Param("request")UserSearchRequest request);
/**
* 查询公司及组织信息
*
* @param userCode 账号
* @param passport 用户护照
* @return 实体对象列表集合
*/
CompanyPO getCompanyInfo(@Param("userCode")String userCode, @Param("passport")Passport passport);
/**
* 模糊搜索对象列表
*
* @param request 请求对象
* @param passport 用户护照
* @return 实体对象列表集合
*/
List<UserRolePO> findUserRoleList(@Param("request")UserGetInfoByAccountRequest request, @Param("passport")Passport passport);
/**
* 模糊搜索对象列表总数
*
* @param request 请求对象
* @param passport 用户护照
* @return 实体对象列表集合总数
*/
long findUserRoleCount(@Param("request")UserSearchRequest request,@Param("passport")Passport passport);
/**
* 搜索对象
*
* @param request
* @param passport 用户护照
* @return 实体对象
*/
UserRolePO findUserRoleById(@Param("request")UserGetRequest request,@Param("passport")Passport passport);
/**
* 根据用户账号查询用户
*
* @param accountList 用户集合
* @param passport 用户护照
* @return 实体对象列表集合
*/
List<UserPO> getByAccountList(@Param("list") List<String> accountList, @Param("passport") Passport passport);
/**
* 用户权限车站信息
* @param userId
* @param passport
* @return
*/
List<StationPO> getUserPermissionStation(@Param("userId")String userId, @Param("passport")Passport passport);
}