综合素质评价
This commit is contained in:
@@ -0,0 +1,180 @@
|
||||
package com.srs.comprehensive.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.srs.common.annotation.Excel;
|
||||
import com.srs.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 辅导员综合评价状态对象 teacher_evaluation_status
|
||||
*
|
||||
* @author srs
|
||||
* @date 2024-01-20
|
||||
*/
|
||||
@Data
|
||||
@TableName("teacher_evaluation_status")
|
||||
public class TeacherEvaluationStatus extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 辅导员ID */
|
||||
@Excel(name = "辅导员ID")
|
||||
private Long teacherId;
|
||||
|
||||
/** 辅导员姓名 */
|
||||
@Excel(name = "辅导员姓名")
|
||||
@TableField(exist = false)
|
||||
private String teacherName;
|
||||
|
||||
/** 工号 */
|
||||
@Excel(name = "工号")
|
||||
@TableField(exist = false)
|
||||
private String employeeId;
|
||||
|
||||
/** 学院ID */
|
||||
@Excel(name = "学院ID")
|
||||
private Long deptId;
|
||||
|
||||
/** 学院名称 */
|
||||
@Excel(name = "学院名称")
|
||||
@TableField(exist = false)
|
||||
private String deptName;
|
||||
|
||||
/** 学年ID */
|
||||
@Excel(name = "学年ID")
|
||||
private Long stuYearId;
|
||||
|
||||
/** 学年名称 */
|
||||
@Excel(name = "学年名称")
|
||||
@TableField(exist = false)
|
||||
private String stuYearName;
|
||||
|
||||
/** 是否完成综合测评 */
|
||||
@Excel(name = "是否完成综合测评")
|
||||
private Boolean isCompleted;
|
||||
|
||||
/** 待办事项数量 */
|
||||
@Excel(name = "待办事项数量")
|
||||
@TableField(exist = false)
|
||||
private Integer todoCount;
|
||||
|
||||
/** 成绩是否已导入 */
|
||||
@Excel(name = "成绩是否已导入")
|
||||
@TableField(exist = false)
|
||||
private Boolean scoreImported;
|
||||
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remarks;
|
||||
|
||||
/** 最后更新时间 */
|
||||
@Excel(name = "最后更新时间")
|
||||
private String lastUpdateTime;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getTeacherId() {
|
||||
return teacherId;
|
||||
}
|
||||
|
||||
public void setTeacherId(Long teacherId) {
|
||||
this.teacherId = teacherId;
|
||||
}
|
||||
|
||||
public String getTeacherName() {
|
||||
return teacherName;
|
||||
}
|
||||
|
||||
public void setTeacherName(String teacherName) {
|
||||
this.teacherName = teacherName;
|
||||
}
|
||||
|
||||
public String getEmployeeId() {
|
||||
return employeeId;
|
||||
}
|
||||
|
||||
public void setEmployeeId(String employeeId) {
|
||||
this.employeeId = employeeId;
|
||||
}
|
||||
|
||||
public Long getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public Long getStuYearId() {
|
||||
return stuYearId;
|
||||
}
|
||||
|
||||
public void setStuYearId(Long stuYearId) {
|
||||
this.stuYearId = stuYearId;
|
||||
}
|
||||
|
||||
public String getStuYearName() {
|
||||
return stuYearName;
|
||||
}
|
||||
|
||||
public void setStuYearName(String stuYearName) {
|
||||
this.stuYearName = stuYearName;
|
||||
}
|
||||
|
||||
public Boolean getIsCompleted() {
|
||||
return isCompleted;
|
||||
}
|
||||
|
||||
public void setIsCompleted(Boolean isCompleted) {
|
||||
this.isCompleted = isCompleted;
|
||||
}
|
||||
|
||||
public Integer getTodoCount() {
|
||||
return todoCount;
|
||||
}
|
||||
|
||||
public void setTodoCount(Integer todoCount) {
|
||||
this.todoCount = todoCount;
|
||||
}
|
||||
|
||||
public Boolean getScoreImported() {
|
||||
return scoreImported;
|
||||
}
|
||||
|
||||
public void setScoreImported(Boolean scoreImported) {
|
||||
this.scoreImported = scoreImported;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getLastUpdateTime() {
|
||||
return lastUpdateTime;
|
||||
}
|
||||
|
||||
public void setLastUpdateTime(String lastUpdateTime) {
|
||||
this.lastUpdateTime = lastUpdateTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.srs.comprehensive.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.srs.comprehensive.domain.TeacherEvaluationStatus;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 辅导员综合评价状态Mapper接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2024-01-20
|
||||
*/
|
||||
@Mapper
|
||||
public interface TeacherEvaluationStatusMapper extends BaseMapper<TeacherEvaluationStatus> {
|
||||
|
||||
/**
|
||||
* 查询辅导员综合评价状态列表
|
||||
*
|
||||
* @param teacherEvaluationStatus 辅导员综合评价状态
|
||||
* @return 辅导员综合评价状态集合
|
||||
*/
|
||||
List<TeacherEvaluationStatus> selectTeacherEvaluationStatusList(TeacherEvaluationStatus teacherEvaluationStatus);
|
||||
|
||||
/**
|
||||
* 查询辅导员待办事项数量
|
||||
*
|
||||
* @param teacherId 辅导员ID
|
||||
* @param stuYearId 学年ID
|
||||
* @return 待办事项数量
|
||||
*/
|
||||
@Select("SELECT COUNT(*) FROM cph_audit_details cad " +
|
||||
"LEFT JOIN cph_teacher ct ON cad.reviewed_by_id = ct.teacher_id " +
|
||||
"LEFT JOIN srs_stu_year ssy ON ssy.id = #{stuYearId} " +
|
||||
"WHERE ct.teacher_id = #{teacherId} " +
|
||||
"AND cad.status_code IN (1, 2) " +
|
||||
"AND cad.create_time >= ssy.start_time " +
|
||||
"AND cad.create_time <= ssy.end_time")
|
||||
Integer selectTodoCountByTeacherAndYear(@Param("teacherId") Long teacherId, @Param("stuYearId") Long stuYearId);
|
||||
|
||||
/**
|
||||
* 查询综合评价成绩导入状态
|
||||
*
|
||||
* @param teacherId 辅导员ID
|
||||
* @param stuYearId 学年ID
|
||||
* @return 是否已导入成绩
|
||||
*/
|
||||
@Select("SELECT COUNT(*) > 0 FROM srs_ce_score scs " +
|
||||
"LEFT JOIN srs_student ss ON scs.stu_id = ss.stu_id " +
|
||||
"LEFT JOIN srs_class sc ON ss.class_id = sc.class_id " +
|
||||
"LEFT JOIN cph_teacher ct ON sc.teacher_id = ct.teacher_id " +
|
||||
"WHERE ct.teacher_id = #{teacherId} " +
|
||||
"AND scs.stu_year_id = #{stuYearId}")
|
||||
Boolean selectScoreImportStatusByTeacherAndYear(@Param("teacherId") Long teacherId, @Param("stuYearId") Long stuYearId);
|
||||
|
||||
/**
|
||||
* 获取所有辅导员基本信息
|
||||
*
|
||||
* @return 辅导员列表
|
||||
*/
|
||||
@Select("SELECT ct.teacher_id, ct.name as teacher_name, ct.employee_id, " +
|
||||
"ct.dept_id, sd.dept_name " +
|
||||
"FROM cph_teacher ct " +
|
||||
"LEFT JOIN sys_dept sd ON ct.dept_id = sd.dept_id ")
|
||||
List<TeacherEvaluationStatus> selectAllTeachers();
|
||||
|
||||
/**
|
||||
* 根据条件查询辅导员综合评价状态
|
||||
*
|
||||
* @param deptId 学院ID
|
||||
* @param teacherName 辅导员姓名
|
||||
* @param employeeId 工号
|
||||
* @param stuYearId 学年ID
|
||||
* @return 辅导员综合评价状态列表
|
||||
*/
|
||||
List<TeacherEvaluationStatus> selectTeacherEvaluationStatusByCondition(
|
||||
@Param("deptId") Long deptId,
|
||||
@Param("teacherName") String teacherName,
|
||||
@Param("employeeId") String employeeId,
|
||||
@Param("stuYearId") Long stuYearId
|
||||
);
|
||||
|
||||
/**
|
||||
* 查询学院名称列表
|
||||
*
|
||||
* @return 学院列表
|
||||
*/
|
||||
List<java.util.Map<String, Object>> selectDeptNameList();
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.srs.comprehensive.service;
|
||||
|
||||
import com.srs.comprehensive.domain.TeacherEvaluationStatus;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 辅导员综合评价状态Service接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2024-01-20
|
||||
*/
|
||||
public interface ITeacherEvaluationStatusService {
|
||||
/**
|
||||
* 查询辅导员综合评价状态
|
||||
*
|
||||
* @param id 辅导员综合评价状态主键
|
||||
* @return 辅导员综合评价状态
|
||||
*/
|
||||
public TeacherEvaluationStatus selectTeacherEvaluationStatusById(Long id);
|
||||
|
||||
/**
|
||||
* 查询辅导员综合评价状态列表
|
||||
*
|
||||
* @param teacherEvaluationStatus 辅导员综合评价状态
|
||||
* @return 辅导员综合评价状态集合
|
||||
*/
|
||||
public List<TeacherEvaluationStatus> selectTeacherEvaluationStatusList(TeacherEvaluationStatus teacherEvaluationStatus);
|
||||
|
||||
/**
|
||||
* 新增辅导员综合评价状态
|
||||
*
|
||||
* @param teacherEvaluationStatus 辅导员综合评价状态
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTeacherEvaluationStatus(TeacherEvaluationStatus teacherEvaluationStatus);
|
||||
|
||||
/**
|
||||
* 修改辅导员综合评价状态
|
||||
*
|
||||
* @param teacherEvaluationStatus 辅导员综合评价状态
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTeacherEvaluationStatus(TeacherEvaluationStatus teacherEvaluationStatus);
|
||||
|
||||
/**
|
||||
* 批量删除辅导员综合评价状态
|
||||
*
|
||||
* @param ids 需要删除的辅导员综合评价状态主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTeacherEvaluationStatusByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除辅导员综合评价状态信息
|
||||
*
|
||||
* @param id 辅导员综合评价状态主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTeacherEvaluationStatusById(Long id);
|
||||
|
||||
/**
|
||||
* 查询辅导员待办事项数量
|
||||
*
|
||||
* @param teacherId 辅导员ID
|
||||
* @param stuYearId 学年ID
|
||||
* @return 待办事项数量
|
||||
*/
|
||||
public Integer selectTodoCountByTeacherAndYear(Long teacherId, Long stuYearId);
|
||||
|
||||
/**
|
||||
* 查询综合评价成绩导入状态
|
||||
*
|
||||
* @param teacherId 辅导员ID
|
||||
* @param stuYearId 学年ID
|
||||
* @return 是否已导入成绩
|
||||
*/
|
||||
public Boolean selectScoreImportStatusByTeacherAndYear(Long teacherId, Long stuYearId);
|
||||
|
||||
/**
|
||||
* 获取所有辅导员基本信息
|
||||
*
|
||||
* @return 辅导员列表
|
||||
*/
|
||||
public List<TeacherEvaluationStatus> selectAllTeachers();
|
||||
|
||||
/**
|
||||
* 根据条件查询辅导员综合评价状态
|
||||
*
|
||||
* @param deptId 学院ID
|
||||
* @param teacherName 辅导员姓名
|
||||
* @param employeeId 工号
|
||||
* @param stuYearId 学年ID
|
||||
* @return 辅导员综合评价状态列表
|
||||
*/
|
||||
public List<TeacherEvaluationStatus> selectTeacherEvaluationStatusByCondition(
|
||||
Long deptId, String teacherName, String employeeId, Long stuYearId);
|
||||
|
||||
/**
|
||||
* 查询学院名称列表
|
||||
*
|
||||
* @return 学院列表
|
||||
*/
|
||||
public List<java.util.Map<String, Object>> selectDeptNameList();
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
package com.srs.comprehensive.service.impl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.comprehensive.mapper.TeacherEvaluationStatusMapper;
|
||||
import com.srs.comprehensive.domain.TeacherEvaluationStatus;
|
||||
import com.srs.comprehensive.service.ITeacherEvaluationStatusService;
|
||||
|
||||
/**
|
||||
* 辅导员综合评价状态Service业务层处理
|
||||
*
|
||||
* @author srs
|
||||
* @date 2024-01-20
|
||||
*/
|
||||
@Service
|
||||
public class TeacherEvaluationStatusServiceImpl implements ITeacherEvaluationStatusService {
|
||||
@Autowired
|
||||
private TeacherEvaluationStatusMapper teacherEvaluationStatusMapper;
|
||||
|
||||
/**
|
||||
* 查询辅导员综合评价状态
|
||||
*
|
||||
* @param id 辅导员综合评价状态主键
|
||||
* @return 辅导员综合评价状态
|
||||
*/
|
||||
@Override
|
||||
public TeacherEvaluationStatus selectTeacherEvaluationStatusById(Long id) {
|
||||
return teacherEvaluationStatusMapper.selectById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询辅导员综合评价状态列表
|
||||
*
|
||||
* @param teacherEvaluationStatus 辅导员综合评价状态
|
||||
* @return 辅导员综合评价状态
|
||||
*/
|
||||
@Override
|
||||
public List<TeacherEvaluationStatus> selectTeacherEvaluationStatusList(TeacherEvaluationStatus teacherEvaluationStatus) {
|
||||
return teacherEvaluationStatusMapper.selectTeacherEvaluationStatusList(teacherEvaluationStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增辅导员综合评价状态
|
||||
*
|
||||
* @param teacherEvaluationStatus 辅导员综合评价状态
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTeacherEvaluationStatus(TeacherEvaluationStatus teacherEvaluationStatus) {
|
||||
return teacherEvaluationStatusMapper.insert(teacherEvaluationStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改辅导员综合评价状态
|
||||
*
|
||||
* @param teacherEvaluationStatus 辅导员综合评价状态
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTeacherEvaluationStatus(TeacherEvaluationStatus teacherEvaluationStatus) {
|
||||
return teacherEvaluationStatusMapper.updateById(teacherEvaluationStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除辅导员综合评价状态
|
||||
*
|
||||
* @param ids 需要删除的辅导员综合评价状态主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTeacherEvaluationStatusByIds(Long[] ids) {
|
||||
return teacherEvaluationStatusMapper.deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除辅导员综合评价状态信息
|
||||
*
|
||||
* @param id 辅导员综合评价状态主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTeacherEvaluationStatusById(Long id) {
|
||||
return teacherEvaluationStatusMapper.deleteById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询辅导员待办事项数量
|
||||
*
|
||||
* @param teacherId 辅导员ID
|
||||
* @param stuYearId 学年ID
|
||||
* @return 待办事项数量
|
||||
*/
|
||||
@Override
|
||||
public Integer selectTodoCountByTeacherAndYear(Long teacherId, Long stuYearId) {
|
||||
return teacherEvaluationStatusMapper.selectTodoCountByTeacherAndYear(teacherId, stuYearId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询综合评价成绩导入状态
|
||||
*
|
||||
* @param teacherId 辅导员ID
|
||||
* @param stuYearId 学年ID
|
||||
* @return 是否已导入成绩
|
||||
*/
|
||||
@Override
|
||||
public Boolean selectScoreImportStatusByTeacherAndYear(Long teacherId, Long stuYearId) {
|
||||
return teacherEvaluationStatusMapper.selectScoreImportStatusByTeacherAndYear(teacherId, stuYearId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有辅导员基本信息
|
||||
*
|
||||
* @return 辅导员列表
|
||||
*/
|
||||
@Override
|
||||
public List<TeacherEvaluationStatus> selectAllTeachers() {
|
||||
return teacherEvaluationStatusMapper.selectAllTeachers();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据条件查询辅导员综合评价状态
|
||||
*
|
||||
* @param deptId 学院ID
|
||||
* @param teacherName 辅导员姓名
|
||||
* @param employeeId 工号
|
||||
* @param stuYearId 学年ID
|
||||
* @return 辅导员综合评价状态列表
|
||||
*/
|
||||
@Override
|
||||
public List<TeacherEvaluationStatus> selectTeacherEvaluationStatusByCondition(
|
||||
Long deptId, String teacherName, String employeeId, Long stuYearId) {
|
||||
return teacherEvaluationStatusMapper.selectTeacherEvaluationStatusByCondition(
|
||||
deptId, teacherName, employeeId, stuYearId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询学院名称列表
|
||||
*
|
||||
* @return 学院列表
|
||||
*/
|
||||
@Override
|
||||
public List<java.util.Map<String, Object>> selectDeptNameList() {
|
||||
return teacherEvaluationStatusMapper.selectDeptNameList();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user