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);
|
|
}
|