SysUserMapper.java
4.96 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
package com.glsx.usercenter.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.glsx.usercenter.dto.ServiceInfo;
import com.glsx.usercenter.pojo.menu.SysOrganization;
import com.glsx.usercenter.pojo.user.SysManager;
import com.glsx.usercenter.pojo.user.SysMechanic;
import com.glsx.usercenter.pojo.user.SysMerchant;
import com.glsx.usercenter.pojo.user.SysUser;
import com.glsx.usercenter.pojo.user.SysUserExample;
import com.glsx.usercenter.pojo.vo.UserQueryVo;
public interface SysUserMapper {
long countByExample(SysUserExample example);
int deleteByExample(SysUserExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysUser record);
int insertSelective(SysUser record);
int insertManager(SysManager sysManager);
int updateManager(SysManager sysManager);
int updateSysMerchant(SysMerchant sysMerchant);
int insertSysMerchant(SysMerchant sysMerchant);
int insertSysMechanic(SysMechanic sysMechanic);
int updateSysMechanic(SysMechanic sysMechanic);
List<SysUser> selectByExample(SysUserExample example);
/**
*
* @author zhanghj
* @Title: selectByPrimaryKey
* @Description: TODO 通过用户id或者小程序openid获取主用户信息
* @param id
* @param miniOpenId
* @return
* SysUser
*
*/
SysUser selectByPrimaryKey(SysUser user);
int updateByExampleSelective(@Param("record") SysUser record, @Param("example") SysUserExample example);
int updateByExample(@Param("record") SysUser record, @Param("example") SysUserExample example);
int updateByPrimaryKey(SysUser record);
List<SysManager> getAllUserList(UserQueryVo userQueryVo);
List<SysMerchant> getSysMerchantList(UserQueryVo userQueryVo);
List<SysMerchant> getSysMerchantBindList(UserQueryVo userQueryVo);
int deleteUserById(UserQueryVo userQueryVo);
List<SysMechanic> getSysMechanicList(UserQueryVo userQueryVo);
int updateSysUser(SysUser sysUser);
List<SysUser> getUserByIdAndName(UserQueryVo userQueryVo);
List<SysOrganization> getAllLevel(@Param("id") Integer id);
List<SysOrganization> getMechanicByOrgId(UserQueryVo userQueryVo);
int insertServiceMechanic(@Param("serviceId")Integer serviceId, @Param("userId")Integer userId);
ServiceInfo getServiceById(@Param("serviceId")Integer serviceId);
SysMerchant getMerchantById(@Param("merchantId")Integer merchantId);
/**
*
* @author zhanghj
* @Title: getServiceMechanicList
* @Description: TODO
* @param mechanic
* @return
* List<SysMechanic>
*
*/
List<SysMechanic> getServiceMechanicList(SysMechanic mechanic);
List<SysMechanic> getCheckSysMechanicList(UserQueryVo userQueryVo);
/**
*
* @author zhanghj
* @Title: getMechanicByUserId
* @Description: TODO 根据用户id获取技工信息
* @param id
* @return
* SysMechanic
*
*/
SysMechanic getMechanicByUserId(@Param("id") Integer id);
SysUser selectByMechanicId(Integer id);
/**
*
* @author zhanghj
* @Title: getMerchantList
* @Description: TODO 获取商户列表
* @param merchant
* @return
* List<SysMerchant>
*
*/
List<SysMerchant> getMerchantList(SysMerchant merchant);
/**
*
* @author zhanghj
* @Title: unbindWechat
* @Description: TODO 解绑微信
* @param user
* @return
* int
*
*/
int unbindWechat(SysUser user);
/**
*
* @author duanht
* @Title: getAllManager
* @Description: TODO 获得所有系统管理员
* @return
*
*/
List<SysUser> getAllManager();
/**
* @param userId
* @return ResultObject
* @author duanht
* @Title: getMechanicBelongService
* @Description: TODO 获取服务商下所有技工(注册时绑定服务商的技工)
*/
List<SysUser> getMechanicBelongService(@Param("userId")Integer userId);
/**
*
* @author zhanghj
* @Title: getAllIndentUserList
* @Description: TODO 获取可订货的用户列表
* @param queryContent
* @return
* List<SysManager>
*
*/
List<SysManager> getAllIndentUserList(@Param("userType")Integer userType, @Param("queryContent") String queryContent);
/**
*
* @author zhanghj
* @Title: getMechanicSP
* @Description: TODO 获取技工所属服务商信息
* @param userId
* @return
* SysUser
*
*/
SysUser getMechanicSP(@Param("userId")Integer userId);
/**
* @param mechanicId,serviceId
* @return ResultObject
* @author duanht
* @Title: updateMechanicBindService
* @Description: TODO 修改技工绑定的服务商(PC)
*/
int updateMechanicBindService(@Param("mechanicId")Integer mechanicId, @Param("serviceId")Integer serviceId);
}