派生自 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
package com.qxueyou.scc.admin.course.service;
 
import java.text.ParseException;
import java.util.List;
 
import com.qxueyou.scc.admin.course.model.CourseSchedule;
import com.qxueyou.scc.base.model.Result;
 
public interface ICourseScheduleService {
    
    /**
     * 新增课表
     * 
     * @param courseSchedule 课表
     *            
     * @return
     */
    String add(CourseSchedule courseSchedule)  throws Exception;
 
    /**
     * 修改课表
     * 
     * @param courseSchedule 课表
     * 
     * @return
     */
    Result update(CourseSchedule courseSchedule)  throws Exception;
 
    /**
     * 删除课表
     * 
     * @param scheduleIds  课表ID数组
     *           
     */
    Result delete(String[] scheduleIds);
 
    /**
     * 发布课表
     * 
     * @param scheduleIds  课表ID数组
     *           
     */
    Result doRelease(String[] scheduleIds);
 
    /**
     * 撤回课表
     * 
     * @param scheduleIds 课表id数组
     *            
     */
    Result doCancel(String[] scheduleIds);
 
    /**
     * 查询课表
     * 
     * @param keyword   搜索文本(课程名称)
     *           
     * @param status  状态
     *           
     * @param pageSize 页码
     *            
     * @param pageNum   每页显示行数
     *           
     * @return 返回课程列表
     */
    List<CourseSchedule> list(String keyword,Short status,Integer pageSize, Integer pageNum);
 
    /**
     * 查询课表个数
     * 
     * @param keyword 搜索文本
     *            
     * @return 返回课表总数
     */
    int listCount(String keyword,Short status);
 
    /**
     * 读取课表详情
     * 
     * @param scheduleId 课表ID
     *            
     * @return 返回课表列表
     */
    CourseSchedule detail(String scheduleId);
 
    /**
     * 获取课程列表
     * @param date
     * @param pageSize
     * @param pageNum
     * @return
     * @throws ParseException
     */
    List<CourseSchedule> listTeacherOfSchedule(String date, Integer pageSize, Integer pageNum) throws Exception;
    
    /**
     * 获取课程列表数量
     * @param date
     * @param pageSize
     * @param pageNum
     * @return
     * @throws ParseException
     */
    int listTeacherOfScheduleCount(String date, Integer pageSize, Integer pageNum) throws ParseException;
    
    /**
     * 获取学生课表列表
     * @param date
     * @param pageSize
     * @param pageNum
     * @return
     * @throws Exception
     */
    List<CourseSchedule> listStudentSchedule(String date, Integer pageSize, Integer pageNum) throws Exception;
    
    /**
     * 获取学生课表列表数量
     * @param date
     * @param pageSize
     * @param pageNum
     * @return
     * @throws Exception
     */
    int listStudentScheduleCount(String date, Integer pageSize, Integer pageNum) throws Exception;
    
    /**
     * 查询有课日期标识
     * @param year
     * @param month
     * @return
     */
    List<Integer> queryDateFlag(int year, int month);
 
}