派生自 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
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);
    
    
}