辅导员管理-添加请销假制度分数字段及通知任务材料功能

- 在SysTeacherKpiFillingBusinessWork实体类中添加stuLeaveRequestScoring字段
- 更新数据库映射文件中的查询、插入和更新语句以支持新字段
- 创建SysTeacherStuNoticeMaterials实体类用于通知任务材料管理
- 创建SysTeacherStuTestMaterials实体类用于职业测评材料管理
- 实现相关服务接口及控制器以支持通知任务材料的CRUD操作
- 实现相关服务接口及控制器以支持职业测评材料的CRUD操作
- 添加对应的数据访问层映射和XML配置文件
- 实现服务层业务逻辑及数据安全控制
This commit is contained in:
2026-03-16 16:56:54 +08:00
parent 3500b26ba6
commit e43637894b
14 changed files with 1097 additions and 6 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>