派生自 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
package com.qxueyou.scc.school.service;
 
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;
 
import com.qxueyou.scc.base.model.Pager;
import com.qxueyou.scc.base.model.Result;
import com.qxueyou.scc.school.model.SchHandout;
import com.qxueyou.scc.school.model.SchHandoutPage;
import com.qxueyou.scc.school.model.SchHandoutPageFavor;
import com.qxueyou.scc.school.model.SchHandoutRecord;
 
public interface IHandoutService {
 
    /**
     * 新增讲义
     * @param file 讲义文件
     * @param handout 讲义vo对象
     * @return 新增结果
     */
    Result insertHandout(String fullPath, String module,SchHandout handout);
    
    /**
     * 机构新增讲义
     * @param file 讲义文件
     * @param handout 讲义vo对象
     * @return 新增结果
     */
    Result insertOrgHandout(String fullPath, String module,SchHandout handout,String collegeCourseId);
    
    /**
     * 编辑讲义
     * @param handoutId
     * @param handoutName
     * @param subjectId
     * @param subjectName
     * @return
     */
    Result doEditHandout(SchHandout handout,String type);
 
    /**
     * 批量删除讲义
     * @param handoutIds 讲义id的数组
     * @return 操作结果
     */
    Result deleteHandouts(String[] handoutIds);
    
    /**
     * 批量删除机构讲义
     * @param handoutIds
     * @param delAll
     * @param orgIds
     * @param classIds
     * @return
     */
    Result deleteOrgHandouts(String[] handoutIds, Integer delAll, String orgIds[], String classIds[]);
 
    /**
     * 批量启动讲义
     * @param handoutIds 讲义id的数组
     * @return 操作结果
     */
    Result doStartHandouts(String handoutIds);
 
    /**
     * 批量停止讲义
     * @param handoutIds 讲义id的数组
     * @return 操作结果
     */
    Result doStopHandouts(String[] handoutIds);
    
    /**
     * 插入历史讲义
     * @param handout
     * @param oldHandoutId
     * @return
     */
    Result insertChooseHandout(SchHandout handout,String oldHandoutId);
    
    /**
     * 查询讲义列表
     * @param hql
     * @param args
     * @return
     */
    List<SchHandout> schHandoutList(int type,final String hql, final Pager page, final List<Object> args);
    
    /**
     * 批量操作讲义收藏记录
     * @param lstFavor
     * @return
     */
    Result doOperHandoutFavorDataBatch(List<SchHandoutPageFavor> lstFavor);
    
    /**
     * 后台获取列表数据
     * @param sql
     * @param args
     * @return
     */
    List<SchHandout> queryDataList(String sql,List<Object> args);
    
    /**
     * 查询选择班级下历史讲义
     * @param hql
     * @param args
     * @return
     */
    List<SchHandout> queryChooseHandoutList(String sql, List<Object> args);
    
    /**
     * 使用jacob另存为图片,需要测试多个请求同时调用情况
     * 1.office2013报错,但是用office2013另存為效果最好
     * 2.office2007解析不完美,字体偏粗,边上有较明显锯齿,可以用jacob調用
     * 3.office2010解析基本正常,但是较于office2013,大字体和边框会有非常少量锯齿(推荐使用)
     * 
     * info:服务器推荐使用office2010,jacob.jar包更新后如果支持office2013,测试哪个版本会效果更好,可以替换服务器office版本
     * 
     * @param file ppt文件
     * @param docPath docPath
     * @return
     */
    List<SchHandoutPage> convertPPTToJPG(File file,String docPath, String handoutId);
    
    /**
     * docdeal 消息队列调用
     * @param docPath
     * @param handoutId
     * @return
     */
    Result insertHandoutPages(String docPath,String handoutId,String uploadModule,String userId,String type);
    
    /**
     * 旋转讲义图片
     * @param angle
     * @param handoutPageId
     * @return
     */
    Result doRotatePic(String angle, String handoutPageId);
    
    /**
     * 查询讲义
     * @param keyWord   查询关键字
     * @return
     */
    List<SchHandout> queryHandoutByKeyWord(String keyWord);
 
    /**
     * 获取讲义列表数据
     * 
     * @return
     */
    List<Map<String, Object>> handoutLst(String tid);
    
    /**
     * 获取机构讲义列表数据
     * 
     * @return
     */
    List<Map<String, Object>> handoutOrgLst(String collegeCourseId, String subjectId);
    /**
     * 指定讲义
     * */
    Result insertAppointHandout(String handoutId[],String orgId[],String classIds[],String collegeCourseId);
    
    /**
     * 更新讲义观看量
     * 
     */
    Result updatePlayCount(String handoutId);
    
    
    /**
     * 插入讲义观看记录(新版)
     * 
     */
    Result insertplayRecordNew(SchHandoutRecord record,String pageNums);
    
    
    /**
     * 插入讲义观看记录
     * 
     */
    Result insertplayRecord(SchHandoutRecord record,String pageNums);
    
    /**
     * 讲义上传重复数据处理
     * @param handoutId
     * @return
     */
    Result doInitHandoutRepeatData( String handoutId );
    
    /**
     * 排序
     * 
     * @param ids 排序id
     * @param index 序号
     * @return
     */
    Result doOrder(List<String> ids,  List<Integer> index);
    
    /**
     * 转码PDF发送消息
     * @param handoutId
     * @param fullPath
     * @param module 
     * @param userId
     * @return
     */
    Result sendMsgConvertPDF(String handoutId,String fullPath,String module,String userId);
    
    /**
     * 拷贝讲义
     * 
     * @param id
     * @param subjectId
     * @param collegeCourseId
     * @param chapterId
     * @return
     */
    Result doCopyHandout(String id, String subjectId, String collegeCourseId, String chapterId, String subjectName) throws IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException;
    
    /**
     * 保存讲义接口
     * 
     * @param handout
     * @return
     */
    public Result saveHandout(SchHandout handout);
    
    
    /**
     * 监管委直接转码
     * @param handoutId
     * @param fullPath
     * @param module
     * @param userId
     */
    public void doConvertPDF(String handoutId, String fullPath, String module, String userId);
    
    /**
     * 转码DOC
     * @param docPath
     * @param handoutId
     * @param uploadModule
     * @param userId
     */
    public void doConvertDOC(String docPath, String handoutId,String uploadModule,String userId);
    
    
}