辅导员管理-添加请销假制度分数字段及通知任务材料功能
- 在SysTeacherKpiFillingBusinessWork实体类中添加stuLeaveRequestScoring字段 - 更新数据库映射文件中的查询、插入和更新语句以支持新字段 - 创建SysTeacherStuNoticeMaterials实体类用于通知任务材料管理 - 创建SysTeacherStuTestMaterials实体类用于职业测评材料管理 - 实现相关服务接口及控制器以支持通知任务材料的CRUD操作 - 实现相关服务接口及控制器以支持职业测评材料的CRUD操作 - 添加对应的数据访问层映射和XML配置文件 - 实现服务层业务逻辑及数据安全控制
This commit is contained in:
@@ -33,6 +33,14 @@ public class SysTeacherKpiFillingBusinessWork extends BaseEntity {
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 请销假制度分数
|
||||
*/
|
||||
@ApiModelProperty("请销假制度分数")
|
||||
@TableField("stu_leave_request_scoring")
|
||||
@Excel(name = "请销假制度分数")
|
||||
private BigDecimal stuLeaveRequestScoring;
|
||||
|
||||
/**
|
||||
* 学生请假材料分数
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.srs.teacher.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.srs.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import com.srs.common.core.domain.BaseEntity;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
|
||||
/**
|
||||
* 通知任务材料对象 sys_teacher_stu_notice_materials
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-06-06
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "SysTeacherStuNoticeMaterials对象", description = "通知任务材料表")
|
||||
@TableName("sys_teacher_stu_notice_materials")
|
||||
public class SysTeacherStuNoticeMaterials extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 开展时间
|
||||
*/
|
||||
@ApiModelProperty("开展时间")
|
||||
@TableField("development_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "开展时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date developmentTime;
|
||||
|
||||
/**
|
||||
* 地点
|
||||
*/
|
||||
@ApiModelProperty("地点")
|
||||
@TableField("place")
|
||||
@Excel(name = "地点")
|
||||
private String place;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ApiModelProperty("班级名称")
|
||||
@TableField("class_name")
|
||||
@Excel(name = "班级名称")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 参与学生人数
|
||||
*/
|
||||
@ApiModelProperty("参与学生人数")
|
||||
@TableField("number_of_students")
|
||||
@Excel(name = "参与学生人数")
|
||||
private Long numberOfStudents;
|
||||
|
||||
/**
|
||||
* 主要内容
|
||||
*/
|
||||
@ApiModelProperty("主要内容")
|
||||
@TableField("main_content")
|
||||
@Excel(name = "主要内容")
|
||||
private String mainContent;
|
||||
|
||||
/**
|
||||
* 相片
|
||||
*/
|
||||
@ApiModelProperty("相片")
|
||||
@TableField("photo")
|
||||
@Excel(name = "相片")
|
||||
private String photo;
|
||||
|
||||
/**
|
||||
* 填报人名称
|
||||
*/
|
||||
@ApiModelProperty(value = "填报人名称", required = true)
|
||||
@TableField("fdy_name")
|
||||
@Excel(name = "填报人名称")
|
||||
private String fdyName;
|
||||
|
||||
/**
|
||||
* 填报年份
|
||||
*/
|
||||
@ApiModelProperty(value = "填报年份", required = true)
|
||||
@TableField("filling_year")
|
||||
@Excel(name = "填报年份")
|
||||
private String fillingYear;
|
||||
|
||||
/**
|
||||
* 填报月份
|
||||
*/
|
||||
@ApiModelProperty(value = "填报月份", required = true)
|
||||
@TableField("filling_month")
|
||||
@Excel(name = "填报月份")
|
||||
@NotNull(message = "填报月份不能为空")
|
||||
private String fillingMonth;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.srs.teacher.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.srs.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import com.srs.common.core.domain.BaseEntity;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
|
||||
/**
|
||||
* 职业测评材料对象 sys_teacher_stu_test_materials
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-06-06
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "SysTeacherStuTestMaterials对象", description = "职业测评材料表")
|
||||
@TableName("sys_teacher_stu_test_materials")
|
||||
public class SysTeacherStuTestMaterials extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 开展时间
|
||||
*/
|
||||
@ApiModelProperty("开展时间")
|
||||
@TableField("development_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "开展时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date developmentTime;
|
||||
|
||||
/**
|
||||
* 地点
|
||||
*/
|
||||
@ApiModelProperty("地点")
|
||||
@TableField("place")
|
||||
@Excel(name = "地点")
|
||||
private String place;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ApiModelProperty("班级名称")
|
||||
@TableField("class_name")
|
||||
@Excel(name = "班级名称")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 参与学生人数
|
||||
*/
|
||||
@ApiModelProperty("参与学生人数")
|
||||
@TableField("number_of_students")
|
||||
@Excel(name = "参与学生人数")
|
||||
private Long numberOfStudents;
|
||||
|
||||
/**
|
||||
* 主要内容
|
||||
*/
|
||||
@ApiModelProperty("主要内容")
|
||||
@TableField("main_content")
|
||||
@Excel(name = "主要内容")
|
||||
private String mainContent;
|
||||
|
||||
/**
|
||||
* 相片
|
||||
*/
|
||||
@ApiModelProperty("相片")
|
||||
@TableField("photo")
|
||||
@Excel(name = "相片")
|
||||
private String photo;
|
||||
|
||||
/**
|
||||
* 填报人名称
|
||||
*/
|
||||
@ApiModelProperty(value = "填报人名称", required = true)
|
||||
@TableField("fdy_name")
|
||||
@Excel(name = "填报人名称")
|
||||
private String fdyName;
|
||||
|
||||
/**
|
||||
* 填报年份
|
||||
*/
|
||||
@ApiModelProperty(value = "填报年份", required = true)
|
||||
@TableField("filling_year")
|
||||
@Excel(name = "填报年份")
|
||||
private String fillingYear;
|
||||
|
||||
/**
|
||||
* 填报月份
|
||||
*/
|
||||
@ApiModelProperty(value = "填报月份", required = true)
|
||||
@TableField("filling_month")
|
||||
@Excel(name = "填报月份")
|
||||
@NotNull(message = "填报月份不能为空")
|
||||
private String fillingMonth;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.srs.teacher.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.teacher.domain.SysTeacherStuNoticeMaterials;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 通知任务材料Mapper接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-06-06
|
||||
*/
|
||||
public interface SysTeacherStuNoticeMaterialsMapper extends BaseMapper<SysTeacherStuNoticeMaterials> {
|
||||
|
||||
public SysTeacherStuNoticeMaterials selectSysTeacherStuNoticeMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 通知任务材料
|
||||
*/
|
||||
public List<SysTeacherStuNoticeMaterials> selectSysTeacherStuNoticeMaterialsList(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials);
|
||||
|
||||
public List<SysTeacherStuNoticeMaterials> selectSysTeacherStuNoticeMaterialsByFdyName(@Param("fdyName") String fdyName, @Param("fillingYear") String fillingYear, @Param("fillingMonth") String fillingMonth);
|
||||
|
||||
/**
|
||||
* 新增通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysTeacherStuNoticeMaterials(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials);
|
||||
|
||||
/**
|
||||
* 修改通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysTeacherStuNoticeMaterials(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials);
|
||||
|
||||
/**
|
||||
* 删除通知任务材料
|
||||
*
|
||||
* @param id 通知任务材料主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherStuNoticeMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除通知任务材料
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherStuNoticeMaterialsByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.srs.teacher.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.teacher.domain.SysTeacherStuTestMaterials;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 职业测评材料Mapper接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-06-06
|
||||
*/
|
||||
public interface SysTeacherStuTestMaterialsMapper extends BaseMapper<SysTeacherStuTestMaterials> {
|
||||
|
||||
public SysTeacherStuTestMaterials selectSysTeacherStuTestMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 职业测评材料
|
||||
*/
|
||||
public List<SysTeacherStuTestMaterials> selectSysTeacherStuTestMaterialsList(SysTeacherStuTestMaterials sysTeacherStuTestMaterials);
|
||||
|
||||
public List<SysTeacherStuTestMaterials> selectSysTeacherStuTestMaterialsByFdyName(@Param("fdyName") String fdyName, @Param("fillingYear") String fillingYear, @Param("fillingMonth") String fillingMonth);
|
||||
|
||||
/**
|
||||
* 新增职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysTeacherStuTestMaterials(SysTeacherStuTestMaterials sysTeacherStuTestMaterials);
|
||||
|
||||
/**
|
||||
* 修改职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysTeacherStuTestMaterials(SysTeacherStuTestMaterials sysTeacherStuTestMaterials);
|
||||
|
||||
/**
|
||||
* 删除职业测评材料
|
||||
*
|
||||
* @param id 职业测评材料主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherStuTestMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除职业测评材料
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherStuTestMaterialsByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.srs.teacher.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.teacher.domain.SysTeacherStuNoticeMaterials;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 通知任务材料Service接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-06-06
|
||||
*/
|
||||
public interface ISysTeacherStuNoticeMaterialsService extends IService<SysTeacherStuNoticeMaterials> {
|
||||
|
||||
public SysTeacherStuNoticeMaterials selectSysTeacherStuNoticeMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 通知任务材料
|
||||
*/
|
||||
public List<SysTeacherStuNoticeMaterials> selectSysTeacherStuNoticeMaterialsList(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials);
|
||||
|
||||
public List<SysTeacherStuNoticeMaterials> selectSysTeacherStuNoticeMaterialsByFdyName(@Param("fdyName") String fdyName, @Param("fillingYear") String fillingYear, @Param("fillingMonth") String fillingMonth);
|
||||
|
||||
/**
|
||||
* 新增通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysTeacherStuNoticeMaterials(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials);
|
||||
|
||||
/**
|
||||
* 修改通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysTeacherStuNoticeMaterials(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials);
|
||||
|
||||
/**
|
||||
* 批量删除通知任务材料
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherStuNoticeMaterialsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除通知任务材料信息
|
||||
*
|
||||
* @param id 通知任务材料主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherStuNoticeMaterialsById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.srs.teacher.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.teacher.domain.SysTeacherStuTestMaterials;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 职业测评材料Service接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-06-06
|
||||
*/
|
||||
public interface ISysTeacherStuTestMaterialsService extends IService<SysTeacherStuTestMaterials> {
|
||||
|
||||
public SysTeacherStuTestMaterials selectSysTeacherStuTestMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 职业测评材料
|
||||
*/
|
||||
public List<SysTeacherStuTestMaterials> selectSysTeacherStuTestMaterialsList(SysTeacherStuTestMaterials sysTeacherStuTestMaterials);
|
||||
|
||||
public List<SysTeacherStuTestMaterials> selectSysTeacherStuTestMaterialsByFdyName(@Param("fdyName") String fdyName, @Param("fillingYear") String fillingYear, @Param("fillingMonth") String fillingMonth);
|
||||
|
||||
/**
|
||||
* 新增职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysTeacherStuTestMaterials(SysTeacherStuTestMaterials sysTeacherStuTestMaterials);
|
||||
|
||||
/**
|
||||
* 修改职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysTeacherStuTestMaterials(SysTeacherStuTestMaterials sysTeacherStuTestMaterials);
|
||||
|
||||
/**
|
||||
* 批量删除职业测评材料
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherStuTestMaterialsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除职业测评材料信息
|
||||
*
|
||||
* @param id 职业测评材料主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherStuTestMaterialsById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.srs.teacher.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.common.utils.SecurityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.teacher.mapper.SysTeacherStuNoticeMaterialsMapper;
|
||||
import com.srs.teacher.domain.SysTeacherStuNoticeMaterials;
|
||||
import com.srs.teacher.service.ISysTeacherStuNoticeMaterialsService;
|
||||
|
||||
/**
|
||||
* 通知任务材料Service实现
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-06-06
|
||||
*/
|
||||
@Service
|
||||
public class SysTeacherStuNoticeMaterialsServiceImpl extends ServiceImpl<SysTeacherStuNoticeMaterialsMapper, SysTeacherStuNoticeMaterials> implements ISysTeacherStuNoticeMaterialsService {
|
||||
|
||||
@Autowired
|
||||
private SysTeacherStuNoticeMaterialsMapper sysTeacherStuNoticeMaterialsMapper;
|
||||
|
||||
@Override
|
||||
public SysTeacherStuNoticeMaterials selectSysTeacherStuNoticeMaterialsById(Long id) {
|
||||
return sysTeacherStuNoticeMaterialsMapper.selectSysTeacherStuNoticeMaterialsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 通知任务材料
|
||||
*/
|
||||
@Override
|
||||
public List<SysTeacherStuNoticeMaterials> selectSysTeacherStuNoticeMaterialsList(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials) {
|
||||
sysTeacherStuNoticeMaterials.setFdyName(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
return sysTeacherStuNoticeMaterialsMapper.selectSysTeacherStuNoticeMaterialsList(sysTeacherStuNoticeMaterials);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SysTeacherStuNoticeMaterials> selectSysTeacherStuNoticeMaterialsByFdyName(String fdyName, String fillingYear, String fillingMonth) {
|
||||
return sysTeacherStuNoticeMaterialsMapper.selectSysTeacherStuNoticeMaterialsByFdyName(fdyName, fillingYear, fillingMonth);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysTeacherStuNoticeMaterials(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials) {
|
||||
sysTeacherStuNoticeMaterials.setFdyName(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
if (sysTeacherStuNoticeMaterials.getId() != null) {
|
||||
return sysTeacherStuNoticeMaterialsMapper.updateSysTeacherStuNoticeMaterials(sysTeacherStuNoticeMaterials);
|
||||
}
|
||||
return sysTeacherStuNoticeMaterialsMapper.insertSysTeacherStuNoticeMaterials(sysTeacherStuNoticeMaterials);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改通知任务材料
|
||||
*
|
||||
* @param sysTeacherStuNoticeMaterials 通知任务材料
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysTeacherStuNoticeMaterials(SysTeacherStuNoticeMaterials sysTeacherStuNoticeMaterials) {
|
||||
sysTeacherStuNoticeMaterials.setFdyName(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
return sysTeacherStuNoticeMaterialsMapper.updateSysTeacherStuNoticeMaterials(sysTeacherStuNoticeMaterials);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除通知任务材料
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysTeacherStuNoticeMaterialsByIds(Long[] ids) {
|
||||
return sysTeacherStuNoticeMaterialsMapper.deleteSysTeacherStuNoticeMaterialsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除通知任务材料信息
|
||||
*
|
||||
* @param id 通知任务材料主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysTeacherStuNoticeMaterialsById(Long id) {
|
||||
return sysTeacherStuNoticeMaterialsMapper.deleteSysTeacherStuNoticeMaterialsById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.srs.teacher.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.common.utils.SecurityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.teacher.mapper.SysTeacherStuTestMaterialsMapper;
|
||||
import com.srs.teacher.domain.SysTeacherStuTestMaterials;
|
||||
import com.srs.teacher.service.ISysTeacherStuTestMaterialsService;
|
||||
|
||||
/**
|
||||
* 职业测评材料Service实现
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-06-06
|
||||
*/
|
||||
@Service
|
||||
public class SysTeacherStuTestMaterialsServiceImpl extends ServiceImpl<SysTeacherStuTestMaterialsMapper, SysTeacherStuTestMaterials> implements ISysTeacherStuTestMaterialsService {
|
||||
|
||||
@Autowired
|
||||
private SysTeacherStuTestMaterialsMapper sysTeacherStuTestMaterialsMapper;
|
||||
|
||||
@Override
|
||||
public SysTeacherStuTestMaterials selectSysTeacherStuTestMaterialsById(Long id) {
|
||||
return sysTeacherStuTestMaterialsMapper.selectSysTeacherStuTestMaterialsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 职业测评材料
|
||||
*/
|
||||
@Override
|
||||
public List<SysTeacherStuTestMaterials> selectSysTeacherStuTestMaterialsList(SysTeacherStuTestMaterials sysTeacherStuTestMaterials) {
|
||||
sysTeacherStuTestMaterials.setFdyName(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
return sysTeacherStuTestMaterialsMapper.selectSysTeacherStuTestMaterialsList(sysTeacherStuTestMaterials);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SysTeacherStuTestMaterials> selectSysTeacherStuTestMaterialsByFdyName(String fdyName, String fillingYear, String fillingMonth) {
|
||||
return sysTeacherStuTestMaterialsMapper.selectSysTeacherStuTestMaterialsByFdyName(fdyName, fillingYear, fillingMonth);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysTeacherStuTestMaterials(SysTeacherStuTestMaterials sysTeacherStuTestMaterials) {
|
||||
sysTeacherStuTestMaterials.setFdyName(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
if (sysTeacherStuTestMaterials.getId() != null) {
|
||||
return sysTeacherStuTestMaterialsMapper.updateSysTeacherStuTestMaterials(sysTeacherStuTestMaterials);
|
||||
}
|
||||
return sysTeacherStuTestMaterialsMapper.insertSysTeacherStuTestMaterials(sysTeacherStuTestMaterials);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改职业测评材料
|
||||
*
|
||||
* @param sysTeacherStuTestMaterials 职业测评材料
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysTeacherStuTestMaterials(SysTeacherStuTestMaterials sysTeacherStuTestMaterials) {
|
||||
sysTeacherStuTestMaterials.setFdyName(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
return sysTeacherStuTestMaterialsMapper.updateSysTeacherStuTestMaterials(sysTeacherStuTestMaterials);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除职业测评材料
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysTeacherStuTestMaterialsByIds(Long[] ids) {
|
||||
return sysTeacherStuTestMaterialsMapper.deleteSysTeacherStuTestMaterialsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除职业测评材料信息
|
||||
*
|
||||
* @param id 职业测评材料主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysTeacherStuTestMaterialsById(Long id) {
|
||||
return sysTeacherStuTestMaterialsMapper.deleteSysTeacherStuTestMaterialsById(id);
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
<resultMap type="SysTeacherKpiFillingBusinessWork" id="SysTeacherKpiFillingBusinessWorkResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="stuLeaveRequestScoring" column="stu_leave_request_scoring"/>
|
||||
<result property="stuLeaveMaterialsScoring" column="stu_leave_materials_scoring"/>
|
||||
<result property="stuFillingMaterialsScoring" column="stu_filling_materials_scoring"/>
|
||||
<result property="stuBasicDataScoring" column="stu_basic_data_scoring"/>
|
||||
@@ -20,6 +21,7 @@
|
||||
|
||||
<sql id="selectSysTeacherKpiFillingBusinessWorkVo">
|
||||
select id,
|
||||
stu_leave_request_scoring,
|
||||
stu_leave_materials_scoring,
|
||||
stu_filling_materials_scoring,
|
||||
stu_basic_data_scoring,
|
||||
@@ -87,6 +89,7 @@
|
||||
insert into sys_teacher_kpi_filling_business_work
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="stuLeaveRequestScoring != null">stu_leave_request_scoring,</if>
|
||||
<if test="stuLeaveMaterialsScoring != null">stu_leave_materials_scoring,</if>
|
||||
<if test="stuFillingMaterialsScoring != null">stu_filling_materials_scoring,</if>
|
||||
<if test="stuBasicDataScoring != null">stu_basic_data_scoring,</if>
|
||||
@@ -100,6 +103,7 @@
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="stuLeaveRequestScoring != null">#{stuLeaveRequestScoring},</if>
|
||||
<if test="stuLeaveMaterialsScoring != null">#{stuLeaveMaterialsScoring},</if>
|
||||
<if test="stuFillingMaterialsScoring != null">#{stuFillingMaterialsScoring},</if>
|
||||
<if test="stuBasicDataScoring != null">#{stuBasicDataScoring},</if>
|
||||
@@ -116,14 +120,11 @@
|
||||
<update id="updateSysTeacherKpiFillingBusinessWork" parameterType="SysTeacherKpiFillingBusinessWork">
|
||||
update sys_teacher_kpi_filling_business_work
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="stuLeaveRequestScoring != null">stu_leave_request_scoring = #{stuLeaveRequestScoring},</if>
|
||||
<if test="stuLeaveMaterialsScoring != null">stu_leave_materials_scoring = #{stuLeaveMaterialsScoring},</if>
|
||||
<if test="stuFillingMaterialsScoring != null">stu_filling_materials_scoring =
|
||||
#{stuFillingMaterialsScoring},
|
||||
</if>
|
||||
<if test="stuFillingMaterialsScoring != null">stu_filling_materials_scoring = #{stuFillingMaterialsScoring},</if>
|
||||
<if test="stuBasicDataScoring != null">stu_basic_data_scoring = #{stuBasicDataScoring},</if>
|
||||
<if test="stuDisciplinaryViolationScoring != null">stu_disciplinary_violation_scoring =
|
||||
#{stuDisciplinaryViolationScoring},
|
||||
</if>
|
||||
<if test="stuDisciplinaryViolationScoring != null">stu_disciplinary_violation_scoring = #{stuDisciplinaryViolationScoring},</if>
|
||||
<if test="handleEventsScoring != null">handle_events_scoring = #{handleEventsScoring},</if>
|
||||
<if test="otherTaskScoring != null">other_task_scoring = #{otherTaskScoring},</if>
|
||||
<if test="fdyName != null and fdyName != ''">fdy_name = #{fdyName},</if>
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.srs.teacher.mapper.SysTeacherStuNoticeMaterialsMapper">
|
||||
|
||||
<resultMap type="com.srs.teacher.domain.SysTeacherStuNoticeMaterials" id="SysTeacherStuNoticeMaterialsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="developmentTime" column="development_time" />
|
||||
<result property="place" column="place" />
|
||||
<result property="className" column="class_name" />
|
||||
<result property="numberOfStudents" column="number_of_students" />
|
||||
<result property="mainContent" column="main_content" />
|
||||
<result property="photo" column="photo" />
|
||||
<result property="fdyName" column="fdy_name" />
|
||||
<result property="fillingYear" column="filling_year" />
|
||||
<result property="fillingMonth" column="filling_month" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysTeacherStuNoticeMaterialsVo">
|
||||
select id, development_time, place, class_name, number_of_students, main_content, photo, fdy_name, filling_year, filling_month from sys_teacher_stu_notice_materials
|
||||
</sql>
|
||||
|
||||
<select id="selectSysTeacherStuNoticeMaterialsList" parameterType="com.srs.teacher.domain.SysTeacherStuNoticeMaterials" resultMap="SysTeacherStuNoticeMaterialsResult">
|
||||
<include refid="selectSysTeacherStuNoticeMaterialsVo"/>
|
||||
<where>
|
||||
<if test="fdyName != null and fdyName != ''"> and fdy_name = #{fdyName}</if>
|
||||
<if test="fillingYear != null and fillingYear != ''"> and filling_year = #{fillingYear}</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''"> and filling_month = #{fillingMonth}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysTeacherStuNoticeMaterialsByFdyName" parameterType="String" resultMap="SysTeacherStuNoticeMaterialsResult">
|
||||
<include refid="selectSysTeacherStuNoticeMaterialsVo"/>
|
||||
where fdy_name = #{fdyName} and filling_year = #{fillingYear} and filling_month = #{fillingMonth}
|
||||
</select>
|
||||
|
||||
<select id="selectSysTeacherStuNoticeMaterialsById" parameterType="Long" resultMap="SysTeacherStuNoticeMaterialsResult">
|
||||
<include refid="selectSysTeacherStuNoticeMaterialsVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysTeacherStuNoticeMaterials" parameterType="com.srs.teacher.domain.SysTeacherStuNoticeMaterials" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sys_teacher_stu_notice_materials
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="developmentTime != null">development_time,</if>
|
||||
<if test="place != null">place,</if>
|
||||
<if test="className != null">class_name,</if>
|
||||
<if test="numberOfStudents != null">number_of_students,</if>
|
||||
<if test="mainContent != null">main_content,</if>
|
||||
<if test="photo != null">photo,</if>
|
||||
<if test="fdyName != null">fdy_name,</if>
|
||||
<if test="fillingYear != null">filling_year,</if>
|
||||
<if test="fillingMonth != null">filling_month,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="developmentTime != null">#{developmentTime},</if>
|
||||
<if test="place != null">#{place},</if>
|
||||
<if test="className != null">#{className},</if>
|
||||
<if test="numberOfStudents != null">#{numberOfStudents},</if>
|
||||
<if test="mainContent != null">#{mainContent},</if>
|
||||
<if test="photo != null">#{photo},</if>
|
||||
<if test="fdyName != null">#{fdyName},</if>
|
||||
<if test="fillingYear != null">#{fillingYear},</if>
|
||||
<if test="fillingMonth != null">#{fillingMonth},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysTeacherStuNoticeMaterials" parameterType="com.srs.teacher.domain.SysTeacherStuNoticeMaterials">
|
||||
update sys_teacher_stu_notice_materials
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="developmentTime != null">development_time = #{developmentTime},</if>
|
||||
<if test="place != null">place = #{place},</if>
|
||||
<if test="className != null">class_name = #{className},</if>
|
||||
<if test="numberOfStudents != null">number_of_students = #{numberOfStudents},</if>
|
||||
<if test="mainContent != null">main_content = #{mainContent},</if>
|
||||
<if test="photo != null">photo = #{photo},</if>
|
||||
<if test="fdyName != null">fdy_name = #{fdyName},</if>
|
||||
<if test="fillingYear != null">filling_year = #{fillingYear},</if>
|
||||
<if test="fillingMonth != null">filling_month = #{fillingMonth},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysTeacherStuNoticeMaterialsById" parameterType="Long">
|
||||
delete from sys_teacher_stu_notice_materials where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysTeacherStuNoticeMaterialsByIds" parameterType="String">
|
||||
delete from sys_teacher_stu_notice_materials where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.srs.teacher.mapper.SysTeacherStuTestMaterialsMapper">
|
||||
|
||||
<resultMap type="com.srs.teacher.domain.SysTeacherStuTestMaterials" id="SysTeacherStuTestMaterialsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="developmentTime" column="development_time" />
|
||||
<result property="place" column="place" />
|
||||
<result property="className" column="class_name" />
|
||||
<result property="numberOfStudents" column="number_of_students" />
|
||||
<result property="mainContent" column="main_content" />
|
||||
<result property="photo" column="photo" />
|
||||
<result property="fdyName" column="fdy_name" />
|
||||
<result property="fillingYear" column="filling_year" />
|
||||
<result property="fillingMonth" column="filling_month" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysTeacherStuTestMaterialsVo">
|
||||
select id, development_time, place, class_name, number_of_students, main_content, photo, fdy_name, filling_year, filling_month from sys_teacher_stu_test_materials
|
||||
</sql>
|
||||
|
||||
<select id="selectSysTeacherStuTestMaterialsList" parameterType="com.srs.teacher.domain.SysTeacherStuTestMaterials" resultMap="SysTeacherStuTestMaterialsResult">
|
||||
<include refid="selectSysTeacherStuTestMaterialsVo"/>
|
||||
<where>
|
||||
<if test="fdyName != null and fdyName != ''"> and fdy_name = #{fdyName}</if>
|
||||
<if test="fillingYear != null and fillingYear != ''"> and filling_year = #{fillingYear}</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''"> and filling_month = #{fillingMonth}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysTeacherStuTestMaterialsByFdyName" parameterType="String" resultMap="SysTeacherStuTestMaterialsResult">
|
||||
<include refid="selectSysTeacherStuTestMaterialsVo"/>
|
||||
where fdy_name = #{fdyName} and filling_year = #{fillingYear} and filling_month = #{fillingMonth}
|
||||
</select>
|
||||
|
||||
<select id="selectSysTeacherStuTestMaterialsById" parameterType="Long" resultMap="SysTeacherStuTestMaterialsResult">
|
||||
<include refid="selectSysTeacherStuTestMaterialsVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysTeacherStuTestMaterials" parameterType="com.srs.teacher.domain.SysTeacherStuTestMaterials" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sys_teacher_stu_test_materials
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="developmentTime != null">development_time,</if>
|
||||
<if test="place != null">place,</if>
|
||||
<if test="className != null">class_name,</if>
|
||||
<if test="numberOfStudents != null">number_of_students,</if>
|
||||
<if test="mainContent != null">main_content,</if>
|
||||
<if test="photo != null">photo,</if>
|
||||
<if test="fdyName != null">fdy_name,</if>
|
||||
<if test="fillingYear != null">filling_year,</if>
|
||||
<if test="fillingMonth != null">filling_month,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="developmentTime != null">#{developmentTime},</if>
|
||||
<if test="place != null">#{place},</if>
|
||||
<if test="className != null">#{className},</if>
|
||||
<if test="numberOfStudents != null">#{numberOfStudents},</if>
|
||||
<if test="mainContent != null">#{mainContent},</if>
|
||||
<if test="photo != null">#{photo},</if>
|
||||
<if test="fdyName != null">#{fdyName},</if>
|
||||
<if test="fillingYear != null">#{fillingYear},</if>
|
||||
<if test="fillingMonth != null">#{fillingMonth},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysTeacherStuTestMaterials" parameterType="com.srs.teacher.domain.SysTeacherStuTestMaterials">
|
||||
update sys_teacher_stu_test_materials
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="developmentTime != null">development_time = #{developmentTime},</if>
|
||||
<if test="place != null">place = #{place},</if>
|
||||
<if test="className != null">class_name = #{className},</if>
|
||||
<if test="numberOfStudents != null">number_of_students = #{numberOfStudents},</if>
|
||||
<if test="mainContent != null">main_content = #{mainContent},</if>
|
||||
<if test="photo != null">photo = #{photo},</if>
|
||||
<if test="fdyName != null">fdy_name = #{fdyName},</if>
|
||||
<if test="fillingYear != null">filling_year = #{fillingYear},</if>
|
||||
<if test="fillingMonth != null">filling_month = #{fillingMonth},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysTeacherStuTestMaterialsById" parameterType="Long">
|
||||
delete from sys_teacher_stu_test_materials where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysTeacherStuTestMaterialsByIds" parameterType="String">
|
||||
delete from sys_teacher_stu_test_materials where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user