派生自 projectDept/qhighschool

EricsHu
2022-12-05 068fc7f2e81178e55fa191a13709af64b1a163f6
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
package com.qxueyou.scc.user.service;
 
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import com.qxueyou.scc.base.model.Result;
import com.qxueyou.scc.user.model.ExportUserRegistration;
import com.qxueyou.scc.user.model.UserRegistration;
 
 
 
public interface IUserRegistrationService {
    
    /**
     * 学员信息操作记录
     * @param operator
     * @param regId
     * @param moduleName
     * @param mobile
     * @return
     */
    Result doInsertRegLog(String operator,String regId,String mobile) ;
    
    /**
     * 更新班级报名数量
     * @param classId
     * @param updateCount
     * @param updateType
     * @return
     */
    Result updateStudentCount(String classId, int updateCount, int updateType);
    
    /**
     * 新增报名
     * @param reg
     * @return
     */
    Result insertRegistration(UserRegistration reg, String source );
    
    /**
     * 新增报名
     * @param reg
     * @param companyName
     * @return
     */
    Result insertRegistration(UserRegistration reg,String companyName, String source );
    
    /**
     * 新增报名
     *  @param role:角色(添加用户的角色,没有可以传null), type:(操作类型:后台、微信、APP....) userMap:参数   mode:具体操作(没有可以传null)
     * @return
     */
    Result insertRegistration(UserRegistration reg,boolean male,String source, String signupInfo);
    
    /**@version 2.0
     * 激活
     * @param role:角色(添加用户的角色,没有可以传null), type:(操作类型:后台、微信、APP....) userMap:参数   mode:具体操作(没有可以传null)
     * @return
     */
    Result executeActivation(String role, String type,String mode, Map<String, Object> userMap,boolean smsFlag,Map<String,String> passwordMap);
    
    /**@version 2.0
     * 报名
     * @param role:角色(添加用户的角色,没有可以传null), type:(操作类型:后台、微信、APP....) userMap:参数   mode:具体操作(没有可以传null)
     * @return
     */
    Result executeSignup(String role, String type, String mode,Map<String, Object> userMap);
    
    /**@version 2.0
     * 注册
     * @param reg
     * @param male
     * @return
     */
    Result executeRegist(String role, String type,String mode,Map<String, Object> userMap);
    
    
    /**
     * 删除报名
     * @param regIds 注册id
     * @return
     */
    Result deleteRegistrations(String[] regIds);
    
    /**
     * 激活报名
     * @param regIds 注册id
     * @return
     */
    Result doActiveRegistrations(String[] regIds,boolean smsFlag,Map<String,String> passwordMap);
    
    
    /**
     * 冻结报名
     * @param regIds 注册id
     * @return
     */
    Result doDeActiveRegistrations(String[] regIds);
    
    /**
     * 用户选课报名
     * @param classId
     * @param courseId
     * @return
     */
    Result doRegClass(String classId, String courseId);
    
    /**
     * 游客选课报名
     * @param userMap
     * @return
     */
    Result doVisitorRegClass(Map<String,Object> userMap);
    
    /**
     * 导入学员报名信息
     * @param file
     * @return
     */
    Result doImportRegistration(String fullPath,String module , String classId);
    
    /**
     * 机构学员列表
     * @param orgId
     * @return
     */
    public List<Map<String,Object>> queryOrgRegistrationList(String orgId);
    /**
     * 学员注册列表 - 班级
     * @return
     */
    List<Map<String,Object>> queryClassRegistrationList(String classId);
    
    /**
     * 导出得到注册信息
     * @return
     */
    List<ExportUserRegistration> queryExportRegList(boolean orgFlag);
    
    /**
     * 判断是否报名
     * @param userId
     * @param classId
     * @return
     */
    boolean hasRegistration(String userId,String classId);
    
    /**
     * 获取Q学友最新的账号号码
     * @return
     */
    String doGetNewQxyAccount();
    
    
    /**
     * 消息处理激活学员后续操作
     * @param userId
     * @param password
     * @param classId
     * @param regId
     * @return
     */
    Result doOnsRegActive(String userId,String password,String classId,String regId);
    
    /**
     * 消息处理删除、冻结学员后续操作
     * @param userId
     * @param password
     * @param classId
     * @param regId
     * @return
     */
    Result doOnsRegDeActive(String userIds,String classId);
    
    /**
     * 加入游客班级,不需要消耗账号
     */
    Result insertClassVisitor(Map<String,Object> userMap);
    
    /**
     * 注册新用户信息准备
     * @return
     */
    HashMap<String, Object> prepareUserInfoMap(String openId, String userId, String source, String wxSource);
    
    /**
     * 已存在用户 仅仅加入机构体验班
     * @param userMap
     * @return
     */
    Result insertOnlyWXOrgVisitorCls(Map<String,Object> userMap);
 
    /**
     * 给学员发送短信
     */
    Result doSendSmsToUser(String regIds);
    
    /**
     * 异步处理学员激活所需要的操作
     * @return
     */
    Result doOnsRegActive2(String userId,String password,String classId,String regId);
    
    /**
     * 保存自定义信息
     * @param data
     */
    Result doSaveCustom(String data, String classId);
    
    /**
     * 获取自定义学员信息
     * @param data
     */
//    List<OrgClassUserCustom> doInitCustomLst(String classId, String pageType, boolean isApp);
    
    /**
     * 学员转班
     * @param data
     */
    Result doSaveTurn(List<String> regIds,String classId);
    
}