派生自 projectDept/qhighschool

yn147
2022-11-24 c6dd8423a2ca6e225deb93b78891d5565136cd4b
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£¬´ó×ÖÌåºÍ±ß¿ò»áÓзdz£ÉÙÁ¿¾â³Ý£¨ÍƼöʹÓã©
     * 
     * 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);
    
    
}