no message
This commit is contained in:
193
SMMS/src/com/chinasofti/service/ClazzService.java
Normal file
193
SMMS/src/com/chinasofti/service/ClazzService.java
Normal file
@@ -0,0 +1,193 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月4日 上午8:00:11
|
||||
*/
|
||||
package com.chinasofti.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.model.Clazz;
|
||||
import com.chinasofti.model.view.Page;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: ClazzService.java
|
||||
* @Description: 班级业务处理
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月4日 上午8:00:11
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月4日 李洪涛 v1.0.0 修改原因
|
||||
*/
|
||||
public interface ClazzService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findClazzPage
|
||||
* @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<Clazz> findClazzPage(Clazz clazz,Page page);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findClazzsByClazzIds
|
||||
* @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<Clazz> findClazzsByClazzIds(String clazzIds,Clazz clazz,Page page);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: removeClazz
|
||||
* @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 removeClazz(List<Long> ids);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: insertClazz
|
||||
* @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 Clazz insertClazz(Clazz clazz);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: updateClazz
|
||||
* @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 void updateClazz(Clazz clazz);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findClazzsByTeacherId
|
||||
* @Description: 根据教师Id查询班级实体
|
||||
*
|
||||
* @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 List<Clazz> findClazzsByTeacherId(long teacherId);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findClazzByClazzName
|
||||
* @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 Clazz findClazzByClazzName(String clazzName);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findClazzsByUserIds
|
||||
* @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<Clazz> findClazzsByUserIds(String uderIds);
|
||||
}
|
||||
73
SMMS/src/com/chinasofti/service/CreditRecordsService.java
Normal file
73
SMMS/src/com/chinasofti/service/CreditRecordsService.java
Normal file
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月15日 下午1:37:53
|
||||
*/
|
||||
package com.chinasofti.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.model.CreditRecords;
|
||||
import com.chinasofti.model.view.Page;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: CreditRecordsService.java
|
||||
* @Description: 学分记录信息业务层
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月15日 下午1:37:53
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月15日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public interface CreditRecordsService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: insertCreditRecords
|
||||
* @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 void insertCreditRecords(Long studentId,CreditRecords creditRecords);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findCreditRecordsPages
|
||||
* @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<CreditRecords> findCreditRecordsPages(String startTime,String endTime,CreditRecords creditRecords,String clazzIds,Page page);
|
||||
|
||||
}
|
||||
214
SMMS/src/com/chinasofti/service/LeaveService.java
Normal file
214
SMMS/src/com/chinasofti/service/LeaveService.java
Normal file
@@ -0,0 +1,214 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月9日 下午1:11:21
|
||||
*/
|
||||
package com.chinasofti.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.model.Leave;
|
||||
import com.chinasofti.model.view.LeaveView;
|
||||
import com.chinasofti.model.view.Page;
|
||||
import com.chinasofti.model.view.TeacherView;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: LeaveService.java
|
||||
* @Description: 请假记录业务处理层
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月9日 下午1:11:21
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月9日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public interface LeaveService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findLeavePages
|
||||
* @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<Leave> findLeavePages(Leave leave,Page page);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: insertLeave
|
||||
* @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 void insertLeave(Leave leave);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: updateLeave
|
||||
* @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 void updateLeave(Leave leave);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findLeaveViews
|
||||
* @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<LeaveView> findLeaveViews(Leave leave);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: removeLeave
|
||||
* @Description: 删除
|
||||
*
|
||||
* @param: Leave
|
||||
* @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 removeLeave(Leave leave);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findLeaveByTeacherIdsAndStatus
|
||||
* @Description: 根据教师id与状态查询
|
||||
*
|
||||
* @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<Leave> findLeaveByTeacherIdsAndStatus(String teacherIds);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findLeavePagesByClazzIds
|
||||
* @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<Leave> findLeavePagesByClazzIds(Leave leave,Page page,String clazzIds);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findLeaveViewsByClazzIds
|
||||
* @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<LeaveView> findLeaveViewsByClazzIds(Leave leave,String clazzIds);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findApproveTeacherViews
|
||||
* @Description: 获取审批教师信息
|
||||
*
|
||||
* @param: 教师ID
|
||||
* @return:审批教师实体集合
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月17日 上午9:12:14
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月17日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public List<TeacherView> findApproveTeacherViews(Long teacherId);
|
||||
}
|
||||
50
SMMS/src/com/chinasofti/service/LoginService.java
Normal file
50
SMMS/src/com/chinasofti/service/LoginService.java
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年3月27日 上午10:42:35
|
||||
*/
|
||||
package com.chinasofti.service;
|
||||
|
||||
import com.chinasofti.model.User;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: LoginService.java
|
||||
* @Description: 登录校验业务层
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年3月27日 上午10:42:35
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年3月27日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public interface LoginService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: LoginService.java
|
||||
* @Description: 登录校验
|
||||
*
|
||||
* @param:User
|
||||
* @return:校验结果
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年3月27日 上午11:03:37
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年3月27日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
public User loginCheck(User user);
|
||||
|
||||
}
|
||||
50
SMMS/src/com/chinasofti/service/RoleService.java
Normal file
50
SMMS/src/com/chinasofti/service/RoleService.java
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月2日 下午9:50:01
|
||||
*/
|
||||
package com.chinasofti.service;
|
||||
|
||||
import com.chinasofti.model.Role;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: RoleService.java
|
||||
* @Description: 角色业务处理层
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月2日 下午9:50:01
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月2日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public interface RoleService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findRoleById
|
||||
* @Description: 根据id查询
|
||||
*
|
||||
* @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 Role findRoleById(long id);
|
||||
|
||||
}
|
||||
176
SMMS/src/com/chinasofti/service/StudentService.java
Normal file
176
SMMS/src/com/chinasofti/service/StudentService.java
Normal file
@@ -0,0 +1,176 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月2日 上午9:21:06
|
||||
*/
|
||||
package com.chinasofti.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.model.Student;
|
||||
import com.chinasofti.model.User;
|
||||
import com.chinasofti.model.view.Page;
|
||||
import com.chinasofti.model.view.StudentView;
|
||||
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: StudentService.java
|
||||
* @Description: 该类的功能描述
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月2日 上午9:21:06
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月2日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public interface StudentService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: insertStudent
|
||||
* @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 insertStudent(Student student,User user);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: removeStudents
|
||||
* @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 String removeStudents(String studentIds,String userIds);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: updateStudent
|
||||
* @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 updateStudent(Student student,User user);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findStudentByUserId
|
||||
* @Description: 根据id查询
|
||||
*
|
||||
* @param: userId值
|
||||
* @return:StudentView
|
||||
* @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 StudentView findStudentByUserId(StudentView studentView);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findStudentViews
|
||||
* @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<StudentView> findStudentViews(StudentView studentView,Page page);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findStudentViewsByClazzIds
|
||||
* @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<StudentView> findStudentViewsByClazzIds(StudentView studentView,String clazzIds,Page page);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: updateStudentScoreNow
|
||||
* @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 void updateStudentScoreNow(int score,Student student);
|
||||
|
||||
}
|
||||
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);
|
||||
}
|
||||
112
SMMS/src/com/chinasofti/service/UserService.java
Normal file
112
SMMS/src/com/chinasofti/service/UserService.java
Normal file
@@ -0,0 +1,112 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: mrliy
|
||||
* @date: 2025年5月2日 上午2:06:30
|
||||
*/
|
||||
package com.chinasofti.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.model.User;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: UserService.java
|
||||
* @Description: 用户业务处理
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月2日 上午2:06:30
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月2日 李洪涛 v1.0.0 修改原因
|
||||
*/
|
||||
public interface UserService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: insertUser
|
||||
* @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 User insertUser(User user);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: removeUser
|
||||
* @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 removeUsers(List<Long> ids);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: updateUser
|
||||
* @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 void updateUser(User user);
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: findUsers
|
||||
* @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<User> findUsers(User user);
|
||||
|
||||
}
|
||||
227
SMMS/src/com/chinasofti/service/impl/ClazzServiceImpl.java
Normal file
227
SMMS/src/com/chinasofti/service/impl/ClazzServiceImpl.java
Normal file
@@ -0,0 +1,227 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service.impl
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月4日 上午8:01:01
|
||||
*/
|
||||
package com.chinasofti.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.dao.ClazzDao;
|
||||
import com.chinasofti.dao.impl.ClazzDaoImpl;
|
||||
import com.chinasofti.model.Clazz;
|
||||
import com.chinasofti.model.view.Page;
|
||||
import com.chinasofti.service.ClazzService;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: ClazzServiceImpl.java
|
||||
* @Description: 该类的功能描述
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月4日 上午8:01:01
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月4日 李洪涛 v1.0.0 修改原因
|
||||
*/
|
||||
public class ClazzServiceImpl implements ClazzService {
|
||||
|
||||
private ClazzDao clazzDao = new ClazzDaoImpl();
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.ClazzService#findClazzPage(com.chinasofti.model.Clazz, com.chinasofti.model.view.Page)
|
||||
* @Function: findClazzPage
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<Clazz> findClazzPage(Clazz clazz, Page page) {
|
||||
return clazzDao.findClazzPage(clazz, page);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.ClazzService#findClazzsByClazzIds(java.lang.String, com.chinasofti.model.view.Page)
|
||||
* @Function: findClazzsByClazzIds
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<Clazz> findClazzsByClazzIds(String clazzIds, Clazz clazz, Page page) {
|
||||
return clazzDao.findClazzsByClazzIds(clazzIds, clazz, page);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.ClazzService#removeClazz(long)
|
||||
* @Function: removeClazz
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void removeClazz(List<Long> ids) {
|
||||
if (ids.size() > 0) {
|
||||
for (Long id : ids) {
|
||||
clazzDao.removeClazz(id);
|
||||
clazzDao.removeTeacherClazzByClazzId(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.ClazzService#insertClazz(com.chinasofti.model.Clazz)
|
||||
* @Function: insertClazz
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public Clazz insertClazz(Clazz clazz) {
|
||||
return clazzDao.insertClazz(clazz);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.ClazzService#updateClazz(com.chinasofti.model.Clazz)
|
||||
* @Function: updateClazz
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void updateClazz(Clazz clazz) {
|
||||
clazzDao.updateClazz(clazz);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.ClazzService#findClazzsByTeacherId(long)
|
||||
* @Function: findClazzsByTeacherId
|
||||
* @Description: 根据教师Id查询班级实体
|
||||
*
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<Clazz> findClazzsByTeacherId(long teacherId) {
|
||||
return clazzDao.findClazzsByTeacherId(teacherId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.ClazzService#findClazzByClazzName(java.lang.String)
|
||||
* @Function: findClazzByClazzName
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public Clazz findClazzByClazzName(String clazzName) {
|
||||
return clazzDao.findClazzByClazzName(clazzName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.ClazzService#findClazzsByUserIds(java.lang.String)
|
||||
* @Function: findClazzsByUserIds
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<Clazz> findClazzsByUserIds(String uderIds) {
|
||||
return clazzDao.findClazzsByUserIds(uderIds);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月15日 下午1:37:53
|
||||
*/
|
||||
package com.chinasofti.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.dao.CreditRecordsDao;
|
||||
import com.chinasofti.dao.impl.CreditRecordsDaoImpl;
|
||||
import com.chinasofti.model.CreditRecords;
|
||||
import com.chinasofti.model.view.Page;
|
||||
import com.chinasofti.service.CreditRecordsService;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: CreditRecordsServiceImpl.java
|
||||
* @Description: 学分记录信息业务层
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月15日 下午1:37:53
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月15日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public class CreditRecordsServiceImpl implements CreditRecordsService {
|
||||
|
||||
private CreditRecordsDao creditRecordsDao = new CreditRecordsDaoImpl();
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.CreditRecordsService#insertCreditRecords(com.chinasofti.model.CreditRecords)
|
||||
* @Function: insertCreditRecords
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void insertCreditRecords(Long studentId,CreditRecords creditRecords) {
|
||||
creditRecordsDao.insertCreditRecords(studentId, creditRecords);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.CreditRecordsService#findCreditRecordsPages(com.chinasofti.model.CreditRecords, com.chinasofti.model.view.Page)
|
||||
* @Function: findCreditRecordsPages
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<CreditRecords> findCreditRecordsPages(String startTime,String endTime,CreditRecords creditRecords,String clazzIds, Page page) {
|
||||
return creditRecordsDao.findCreditRecordsPages(startTime,endTime,creditRecords,clazzIds, page);
|
||||
}
|
||||
|
||||
}
|
||||
247
SMMS/src/com/chinasofti/service/impl/LeaveServiceImpl.java
Normal file
247
SMMS/src/com/chinasofti/service/impl/LeaveServiceImpl.java
Normal file
@@ -0,0 +1,247 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service.impl
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月9日 下午1:12:36
|
||||
*/
|
||||
package com.chinasofti.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.dao.LeaveDao;
|
||||
import com.chinasofti.dao.impl.LeaveDaoImpl;
|
||||
import com.chinasofti.model.Leave;
|
||||
import com.chinasofti.model.view.LeaveView;
|
||||
import com.chinasofti.model.view.Page;
|
||||
import com.chinasofti.model.view.TeacherView;
|
||||
import com.chinasofti.service.LeaveService;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: LeaveServiceImpl.java
|
||||
* @Description: 请假记录业务处理层
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月9日 下午1:11:21
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月9日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public class LeaveServiceImpl implements LeaveService {
|
||||
|
||||
private LeaveDao leaveDao = new LeaveDaoImpl();
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#findfindLeavePages(com.chinasofti.model.Leave, com.chinasofti.model.view.Page)
|
||||
* @Function: findfindLeavePages
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<Leave> findLeavePages(Leave leave, Page page) {
|
||||
return leaveDao.findLeavePages(leave, page);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#insertLeave(com.chinasofti.model.Leave)
|
||||
* @Function: insertLeave
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void insertLeave(Leave leave) {
|
||||
leaveDao.insertLeave(leave);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#updateLeave(com.chinasofti.model.Leave)
|
||||
* @Function: updateLeave
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void updateLeave(Leave leave) {
|
||||
leaveDao.updateLeave(leave);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#findLeaveViews(com.chinasofti.model.Leave)
|
||||
* @Function: findLeaveViews
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<LeaveView> findLeaveViews(Leave leave) {
|
||||
return leaveDao.findLeaveViews(leave);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#removeLeave(com.chinasofti.model.Leave)
|
||||
* @Function: removeLeave
|
||||
* @Description: 删除
|
||||
*
|
||||
* @param: Leave
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void removeLeave(Leave leave) {
|
||||
leaveDao.removeLeave(leave);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#findLeaveByTeacherIdsAndStatus(java.lang.String)
|
||||
* @Function: findLeaveByTeacherIdsAndStatus
|
||||
* @Description: 根据教师id与状态查询
|
||||
*
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<Leave> findLeaveByTeacherIdsAndStatus(String teacherIds) {
|
||||
return leaveDao.findLeaveByTeacherIdsAndStatus(teacherIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#findLeavePagesByClazzIds(com.chinasofti.model.Leave, com.chinasofti.model.view.Page, java.lang.String)
|
||||
* @Function: findLeavePagesByClazzIds
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<Leave> findLeavePagesByClazzIds(Leave leave, Page page, String clazzIds) {
|
||||
return leaveDao.findLeavePagesByClazzIds(leave, page, clazzIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#findLeaveViewsByClazzIds(com.chinasofti.model.Leave, java.lang.String)
|
||||
* @Function: LeaveServiceImpl.java
|
||||
* @Description: 该函数的功能描述
|
||||
*
|
||||
* @param:描述1描述
|
||||
* @return:返回结果描述
|
||||
* @throws:异常描述
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: mrliy
|
||||
* @date: 2025年5月16日 下午8:23:34
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月16日 mrliy v1.0.0 修改原因
|
||||
*/
|
||||
@Override
|
||||
public List<LeaveView> findLeaveViewsByClazzIds(Leave leave, String clazzIds) {
|
||||
return leaveDao.findLeaveViewsByClazzIds(leave, clazzIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LeaveService#findApproveTeacherViews(java.lang.Long)
|
||||
* @Function: findApproveTeacherViews
|
||||
* @Description: 获取审批教师信息
|
||||
*
|
||||
* @param: 教师ID
|
||||
* @return:审批教师实体集合
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月17日 上午9:12:14
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月17日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<TeacherView> findApproveTeacherViews(Long teacherId) {
|
||||
return leaveDao.findApproveTeacherViews(teacherId);
|
||||
}
|
||||
|
||||
}
|
||||
74
SMMS/src/com/chinasofti/service/impl/LoginServiceImpl.java
Normal file
74
SMMS/src/com/chinasofti/service/impl/LoginServiceImpl.java
Normal file
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service.impl
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年3月27日 上午10:45:31
|
||||
*/
|
||||
package com.chinasofti.service.impl;
|
||||
|
||||
|
||||
import com.alibaba.druid.util.StringUtils;
|
||||
import com.chinasofti.dao.RoleDao;
|
||||
import com.chinasofti.dao.UserDao;
|
||||
import com.chinasofti.dao.impl.RoleDaoImpl;
|
||||
import com.chinasofti.dao.impl.UserDaoImpl;
|
||||
import com.chinasofti.model.Role;
|
||||
import com.chinasofti.model.User;
|
||||
import com.chinasofti.service.LoginService;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: LoginServiceImpl.java
|
||||
* @Description: 登录校验业务处理层
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年3月27日 上午10:45:31
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年3月27日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public class LoginServiceImpl implements LoginService {
|
||||
|
||||
private UserDao userDao = new UserDaoImpl();
|
||||
private RoleDao roleDao = new RoleDaoImpl();
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.LoginService#loginCheck(com.chinasofti.model.User)
|
||||
* @Function: LoginServiceImpl.java
|
||||
* @Description: 登录校验
|
||||
*
|
||||
* @param:User
|
||||
* @return:校验结果
|
||||
* @throws:无
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年3月27日 上午11:07:16
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年3月27日 李洪涛 v1.0.0 新建方法
|
||||
*/
|
||||
@Override
|
||||
public User loginCheck(User user) {
|
||||
User resUser = userDao.findUser(user);
|
||||
User res = null;
|
||||
if (null == resUser) {
|
||||
return res;
|
||||
}
|
||||
user = resUser;
|
||||
Role role = roleDao.findRoleById(user.getRoleId());
|
||||
if (null != role && !StringUtils.isEmpty(role.getRoleCode()) ) {
|
||||
res = user;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
58
SMMS/src/com/chinasofti/service/impl/RoleServiceImpl.java
Normal file
58
SMMS/src/com/chinasofti/service/impl/RoleServiceImpl.java
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service.impl
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月2日 下午9:51:46
|
||||
*/
|
||||
package com.chinasofti.service.impl;
|
||||
|
||||
import com.chinasofti.dao.RoleDao;
|
||||
import com.chinasofti.dao.impl.RoleDaoImpl;
|
||||
import com.chinasofti.model.Role;
|
||||
import com.chinasofti.service.RoleService;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: RoleService.java
|
||||
* @Description: 角色业务处理层
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月2日 下午9:50:01
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月2日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public class RoleServiceImpl implements RoleService {
|
||||
|
||||
private RoleDao roleDao = new RoleDaoImpl();
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.RoleService#findRoleById(long)
|
||||
* @Function: findRoleById
|
||||
* @Description: 根据id查询
|
||||
*
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public Role findRoleById(long id) {
|
||||
return roleDao.findRoleById(id);
|
||||
}
|
||||
|
||||
}
|
||||
222
SMMS/src/com/chinasofti/service/impl/StudentServiceImpl.java
Normal file
222
SMMS/src/com/chinasofti/service/impl/StudentServiceImpl.java
Normal file
@@ -0,0 +1,222 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service.impl
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月2日 上午9:24:13
|
||||
*/
|
||||
package com.chinasofti.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.dao.StudentDao;
|
||||
import com.chinasofti.dao.UserDao;
|
||||
import com.chinasofti.dao.impl.StudentDaoImpl;
|
||||
import com.chinasofti.dao.impl.UserDaoImpl;
|
||||
import com.chinasofti.model.Student;
|
||||
import com.chinasofti.model.User;
|
||||
import com.chinasofti.model.view.Page;
|
||||
import com.chinasofti.model.view.StudentView;
|
||||
import com.chinasofti.service.StudentService;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: StudentServiceImpl.java
|
||||
* @Description: 该类的功能描述
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年4月2日 上午9:24:13
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年4月2日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public class StudentServiceImpl implements StudentService {
|
||||
|
||||
private StudentDao studentDao = new StudentDaoImpl();
|
||||
private UserDao userDao = new UserDaoImpl();
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.StudentService#removeStudent(long)
|
||||
* @Function: removeStudents
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public String removeStudents(String studentIds,String userIds) {
|
||||
return studentDao.removeStudent(studentIds, userIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.StudentService#updateStudent(com.chinasofti.model.Student)
|
||||
/**
|
||||
*
|
||||
* @Function: updateStudent
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public String updateStudent(Student student,User user) {
|
||||
return studentDao.updateStudent(student,user);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.StudentService#findStudentByUserId(long)
|
||||
* @Function: findStudentByUserId
|
||||
* @Description: 根据id查询
|
||||
*
|
||||
* @param: userId值
|
||||
* @return:StudentView
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public StudentView findStudentByUserId(StudentView studentView) {
|
||||
Student student = studentDao.findStudentByUserId(studentView.getUserId());
|
||||
User user = new User();
|
||||
user.setId(studentView.getUserId());
|
||||
user = userDao.findUser(user);
|
||||
studentView.setStudentId(student.getId());
|
||||
studentView.setName(user.getName());
|
||||
studentView.setSex(user.getSex());
|
||||
studentView.setUserName(user.getUserName());
|
||||
studentView.setPhone(user.getPhone());
|
||||
studentView.setClazzId(student.getClazzId());
|
||||
studentView.setNumber(student.getNumber());
|
||||
studentView.setBirthday(student.getBirthday().toString());
|
||||
studentView.setMajor(student.getMajor());
|
||||
studentView.setHonor(student.getHonor());
|
||||
studentView.setScoreNow(student.getScoreNow());
|
||||
return studentView;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.StudentService#findStudentViews(com.chinasofti.model.view.StudentView, com.chinasofti.model.view.Page)
|
||||
* @Function: findStudentViews
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<StudentView> findStudentViews(StudentView studentView, Page page) {
|
||||
return studentDao.findStudentViews(studentView, page);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.StudentService#insertStudent(com.chinasofti.model.Student)
|
||||
* @Function: insertStudent
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public String insertStudent(Student student,User user) {
|
||||
return studentDao.insertStudent(student,user);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.StudentService#findStudentViewsByClazzIds(java.lang.String, com.chinasofti.model.view.Page)
|
||||
* @Function: findStudentViewsByClazzIds
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<StudentView> findStudentViewsByClazzIds(StudentView studentView,String clazzIds, Page page) {
|
||||
return studentDao.findStudentViewsByClazzIds(studentView,clazzIds, page);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.StudentService#updateStudentScoreNow(int, com.chinasofti.model.Student)
|
||||
* @Function: updateStudentScoreNow
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void updateStudentScoreNow(int score, Student student) {
|
||||
studentDao.updateStudentScoreNow(score, student);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
234
SMMS/src/com/chinasofti/service/impl/TeacherServiceImpl.java
Normal file
234
SMMS/src/com/chinasofti/service/impl/TeacherServiceImpl.java
Normal file
@@ -0,0 +1,234 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service.impl
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月4日 下午11:18:00
|
||||
*/
|
||||
package com.chinasofti.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.dao.TeacherDao;
|
||||
import com.chinasofti.dao.impl.TeacherDaoImpl;
|
||||
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;
|
||||
import com.chinasofti.service.TeacherService;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: TeacherServiceImpl.java
|
||||
* @Description: 教师业务处理
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月4日 下午11:18:00
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月4日 李洪涛 v1.0.0 新建文件
|
||||
*/
|
||||
public class TeacherServiceImpl implements TeacherService {
|
||||
|
||||
private TeacherDao teacherDao = new TeacherDaoImpl();
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.TeacherService#findTeacher(com.chinasofti.model.Teacher)
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public Teacher findTeacher(Teacher teacher) {
|
||||
return teacherDao.findTeacher(teacher);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.TeacherService#findClazzIdsByTeacherId(java.lang.Long)
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<Long> findClazzIdsByTeacherId(Long teacherID) {
|
||||
return teacherDao.findClazzIdsByTeacherId(teacherID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.TeacherService#findTeacherViews(com.chinasofti.model.view.TeacherView, com.chinasofti.model.view.Page)
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<TeacherView> findTeacherViews(TeacherView teacherView, Page page) {
|
||||
return teacherDao.findTeacherViews(teacherView, page);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.TeacherService#insertTeacher(com.chinasofti.model.Teacher)
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public String insertTeacher(Teacher teacher,User user,TeacherClazz teacherClazz,String [] clazzIds) {
|
||||
return teacherDao.insertTeacher(teacher,user,teacherClazz,clazzIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.TeacherService#insertTeacherClazz(com.chinasofti.model.TeacherClazz)
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public TeacherClazz insertTeacherClazz(TeacherClazz teacherClazz,String [] clazzIds) {
|
||||
for (String clazzId : clazzIds) {
|
||||
teacherClazz.setClazzId(Long.parseLong(clazzId));
|
||||
teacherDao.insertTeacherClazz(teacherClazz);
|
||||
}
|
||||
return teacherClazz;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.TeacherService#updateTeacher(com.chinasofti.model.Teacher)
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public String updateTeacher(Teacher teacher,String [] clazzIds,User user) {
|
||||
return teacherDao.updateTeacher(teacher, clazzIds, user);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.TeacherService#removeTeachers(java.util.List)
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void removeTeachers(List<Long> ids) {
|
||||
if (ids.size() > 0) {
|
||||
for (Long id : ids) {
|
||||
teacherDao.removeTeacher(id);
|
||||
teacherDao.removeTeacherClazz(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.TeacherService#findTeacherByStudentId(java.lang.Long)
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public Teacher findTeacherByStudentId(Long studentId) {
|
||||
return teacherDao.findTeacherByStudentId(studentId);
|
||||
}
|
||||
|
||||
}
|
||||
133
SMMS/src/com/chinasofti/service/impl/UserServiceImpl.java
Normal file
133
SMMS/src/com/chinasofti/service/impl/UserServiceImpl.java
Normal file
@@ -0,0 +1,133 @@
|
||||
/**
|
||||
* Copyright © 2025 eSunny Info. Tech Ltd. All rights reserved.
|
||||
*
|
||||
* 功能描述:
|
||||
* @Package: com.chinasofti.service.impl
|
||||
* @author: mrliy
|
||||
* @date: 2025年5月2日 上午2:07:43
|
||||
*/
|
||||
package com.chinasofti.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.chinasofti.dao.UserDao;
|
||||
import com.chinasofti.dao.impl.UserDaoImpl;
|
||||
import com.chinasofti.model.User;
|
||||
import com.chinasofti.service.UserService;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2025 chiansofti
|
||||
*
|
||||
* @ClassName: UserService.java
|
||||
* @Description: 用户业务处理
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 李洪涛
|
||||
* @date: 2025年5月2日 上午2:06:30
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 2025年5月2日 李洪涛 v1.0.0 修改原因
|
||||
*/
|
||||
public class UserServiceImpl implements UserService{
|
||||
|
||||
private UserDao userDao = new UserDaoImpl();
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.UserService#updateUser(com.chinasofti.model.User)
|
||||
* @Function: updateUser
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void updateUser(User user) {
|
||||
userDao.updateUser(user);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.UserService#removeUser(long)
|
||||
* @Function: removeUser
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public void removeUsers(List<Long> ids) {
|
||||
if (null != ids && ids.size() > 0) {
|
||||
for (Long id : ids) {
|
||||
userDao.removeUser(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @Function: insertUser
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public User insertUser(User user) {
|
||||
return userDao.insertUser(user);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.chinasofti.service.UserService#findUsers(com.chinasofti.model.User)
|
||||
* @Function: findUsers
|
||||
* @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 新建方法
|
||||
*/
|
||||
@Override
|
||||
public List<User> findUsers(User user) {
|
||||
return userDao.findUsers(user);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user