no message
This commit is contained in:
195
SMMS/src/com/chinasofti/service/TeacherService.java
Normal file
195
SMMS/src/com/chinasofti/service/TeacherService.java
Normal file
@@ -0,0 +1,195 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月4日 下午11:17:06
|
||||
*/
|
||||
package com.chinasofti.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.model.Teacher;
|
||||
import com.chinasofti.model.TeacherClazz;
|
||||
import com.chinasofti.model.User;
|
||||
import com.chinasofti.model.view.Page;
|
||||
import com.chinasofti.model.view.TeacherView;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: TeacherService.java
|
||||
* @Description: 教师业务处理
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月4日 下午11:17:06
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月4日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public interface TeacherService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findTeacher
|
||||
* @Description: 查询
|
||||
*
|
||||
* @param: 教师实体
|
||||
* @return:教师实体
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月6日 上午10:50:58
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月6日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public Teacher findTeacher(Teacher teacher);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findClazzIdsByTeacherId
|
||||
* @Description: 查询
|
||||
*
|
||||
* @param: teacherID
|
||||
* @return:List<Long>
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月6日 上午10:50:58
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月6日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public List<Long> findClazzIdsByTeacherId(Long teacherID);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findTeacherViews
|
||||
* @Description: 查询所有记录
|
||||
*
|
||||
* @param: 教师实体
|
||||
* @return:教师实体集合
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月6日 上午10:50:58
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月6日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public List<TeacherView> findTeacherViews(TeacherView teacherView,Page page);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: insertTeacher
|
||||
* @Description: 添加
|
||||
*
|
||||
* @param: 教师实体
|
||||
* @return:无
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月6日 上午10:50:58
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月6日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public String insertTeacher(Teacher teacher,User user,TeacherClazz teacherClazz,String [] clazzIds);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: insertTeacherClazz
|
||||
* @Description: 添加
|
||||
*
|
||||
* @param: 教师与班级关联关系实体
|
||||
* @return:无
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月6日 上午10:50:58
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月6日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public TeacherClazz insertTeacherClazz(TeacherClazz teacherClazz,String [] clazzIds);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: updateTeacher
|
||||
* @Description: 修改
|
||||
*
|
||||
* @param: 教师实体
|
||||
* @return:无
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月6日 上午10:50:58
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月6日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public String updateTeacher(Teacher teacher,String [] clazzIds,User user);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: removeTeachers
|
||||
* @Description: 删除
|
||||
*
|
||||
* @param: id值
|
||||
* @return:无
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月6日 上午10:50:58
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月6日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public void removeTeachers(List<Long> ids);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findTeacherByStudentId
|
||||
* @Description: 查询
|
||||
*
|
||||
* @param: 教师实体
|
||||
* @return:教师实体
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月6日 上午10:50:58
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月6日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public Teacher findTeacherByStudentId(Long studentId);
|
||||
}
|
||||
Reference in New Issue
Block a user