派生自 projectDept/qhighschool

胡仁荣
2022-10-31 fe7381d6e8ec1f427408de0297ac7f41533202f6
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
package com.qxueyou.scc.school.service;
 
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
 
import org.springframework.web.bind.annotation.ResponseBody;
 
import com.qxueyou.scc.base.model.Result;
 
/**
 * ¿Î¼þ¹ÜÀí
 * 
 * @author lihanqi
 *
 */
public interface ICourseWareService {
    
    /**
     * ÐÂÔöÕ½Ú
     * 
     * @param name
     * @param parentChapterId
     * @return
     */
    Result addOrUpdateChapter(String chapterId, String subjectId, String name, String parentChapterId);
    
    /**
     * É¾³ýÕ½Ú
     * 
     * @param chapterId
     * @return
     */
    Result deleteChapter(String[] chapterIds);
    
    /**
     * ¿½±´¿Î¼þ
     * 
     * @param type ¿Î¼þÀàÐÍ
     * @param id Ö÷¼ü
     * @param subjectId ¿Î³Ì
     * @param collegeCourseId ¿ÆÄ¿
     * @param chapterId Õ½Ú
     * @return
     */
    Result doCopyCourseware(String type, String id, String subjectId, String collegeCourseId, String chapterId);
    
    /**
     * Òƶ¯¿Î¼þ
     * 
     * @param type ¿Î¼þÀàÐÍ
     * @param id Ö÷¼ü
     * @param subjectId ¿Î³Ì
     * @param collegeCourseId ¿ÆÄ¿
     * @param chapterId Õ½Ú
     * @return
     */
    Result doMoveCourseware(String type, String id, String subjectId, String collegeCourseId, String chapterId);
    
    /**
     * É¾³ý¿Î¼þ
     * 
     * @param types
     * @param ids
     * @param delAll
     * @param orgIds
     * @param classIds
     * @return
     */
    Result deleteCourseware(String[] types, String[] ids, Integer delAll, String orgIds[], String classIds[]);
    
    /**
     * Ï·¢¿Î¼þ
     * 
     * @param types
     * @param ids
     * @param orgIds
     * @param classIds
     * @return
     */
    Result doAppointCourseware(String[] types, String[] ids, String orgIds[], String classIds[], String collegeCourseId);
    
    /**
     * ²éѯÒÑÏ·¢µÄ°à¼¶
     * 
     * @param types
     * @param ids
     * @return
     */
    Result findAlready(String[] types, String[] ids);
    
    /**
     * ¿Î¼þÊ÷ÅÅÐò
     * 
     * @param ids
     * @param type
     * @param parentId
     * @return
     */
    Result doOrder(String[] ids, String type, String parentId);
    
    /**
     * É¾³ý¿Î¼þ
     * 
     * @param types
     * @param ids
     * @return
     */
    public Result deleteClassCourseware(String[] types, String[] ids);
    
    /**
     * ¿½±´¿Î¼þ
     * 
     * @param type ¿Î¼þÀàÐÍ
     * @param id Ö÷¼ü
     * @param subjectId ¿Î³Ì
     * @param collegeCourseId ¿ÆÄ¿
     * @param chapterId Õ½Ú
     * @return
     */
    public Result doCopyClassCourseware(String type, String id, String subjectId, String chapterId);
    
    /**
     * ·¢²¼ºÍÍ£ÓÃ
     * 
     * @param types
     * @param ids
     * @param status
     * @return
     */
    public Result updateStatus(String[] types, String[] ids, int status);
    
    /**
     * É¾³ý¿Î³ÌºÍÕ½ڼ¶ÁªÉ¾³ý¿Î¼þ
     *  
     * @param subjectId »ú¹¹¿Î³Ìid
     * @param chapterId Õ½Úid
     * @param classSubjectId °à¼¶¿Î³Ìid
     * @return
     */
    public Result deleteCourseWare(String subjectId, String chapterId);
    
    /**
     * Í¬²½¸üпμþ¿Î³ÌÃû³Æ
     * 
     * @param subjectId
     * @param subjectName
     * @return
     */
    public Result updateCourseWare(String subjectId, String subjectName);
    
    /**
     * Ï·¢¿Î¼þµ½×Ó»ú¹¹
     * 
     * @param id
     * @param sourceOrgId
     * @param targetOrgId
     * @param collegeCourseId
     * @return
     */
    public Result insertOrgCourseware(String id, String sourceOrgId, String targetOrgId, String collegeCourseId);
    
    /**
     * ³·»Ø
     * 
     * @param id
     * @param orgId
     * @return
     */
    public Result deleteOrgCourseware(String id, String orgId);
    
    /**
     * ÉèÖÃѧ·Ö
     * @param id
     * @param score
     * @return
     */
    public Result updateCoursewareScore(String id ,int score) ;
 
    /**
     * ²éÕҿμþ
     * @param id 
     * @param type
     * @return
     */
    public List<Map<String, Object>> queryCourseware(String id, String type);
    
    /**
     * ¸üпμþµÄѧ·ÖÖµ
     * @param coursewareId
     * @return
     */
    public @ResponseBody Result updateCoursewareScoreValue(String coursewareId,BigDecimal scoreValue);
    
    
    /**
     * »ñÈ¡ÅÅÐò
     * 
     * @param isOrg
     * @param subjectId
     * @param chapterId
     * @return
     */
    public Map<String, Integer> getOrder(boolean isOrg, String subjectId, String chapterId);
    
    
}