辅导员管理-添加班级类型参数支持按类型筛选
- 在多个服务接口中添加classType参数,包括考勤管理、业务工作、负面清单等服务 - 更新控制器方法以接收班级类型参数并传递给服务层 - 在实体类中添加classType字段,支持毕业班和非毕业班分类 - 修改数据访问层实现以支持按班级类型查询过滤 - 更新MyBatis映射文件中的SQL查询,添加classType条件判断 - 为业务工作模块添加其他任务分数字段和其他相关功能 - 在主表映射中添加班级类型字段,完善数据结构设计
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
<?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.SysTeacherKpiFillingBonusPointsMapper">
|
||||
|
||||
<resultMap type="SysTeacherKpiFillingBonusPoints" id="SysTeacherKpiFillingBonusPointsResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bonusType" column="bonus_type"/>
|
||||
<result property="bonusScoring" column="bonus_scoring"/>
|
||||
<result property="fdyName" column="fdy_name"/>
|
||||
<result property="fillingYear" column="filling_year"/>
|
||||
<result property="fillingMonth" column="filling_month"/>
|
||||
<result property="classType" column="class_type"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysTeacherKpiFillingBonusPointsVo">
|
||||
select id, bonus_type, bonus_scoring, fdy_name, filling_year, filling_month, class_type
|
||||
from sys_teacher_kpi_filling_bonus_points
|
||||
</sql>
|
||||
|
||||
<select id="selectSysTeacherKpiFillingBonusPointsList" parameterType="SysTeacherKpiFillingBonusPoints"
|
||||
resultMap="SysTeacherKpiFillingBonusPointsResult">
|
||||
<include refid="selectSysTeacherKpiFillingBonusPointsVo"/>
|
||||
<where>
|
||||
<if test="bonusType != null and bonusType != ''">and bonus_type = #{bonusType}</if>
|
||||
<if test="bonusScoring != null ">and bonus_scoring = #{bonusScoring}</if>
|
||||
<if test="fdyName != null and fdyName != ''">and fdy_name like concat('%', #{fdyName}, '%')</if>
|
||||
<if test="fillingYear != null and fillingYear != ''">and filling_year = #{fillingYear}</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''">and filling_month = #{fillingMonth}</if>
|
||||
<if test="classType != null and classType != ''">and class_type = #{classType}</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
<!--根据名称、年份、月份查询-->
|
||||
<select id="selectSysTeacherKpiFillingBonusPointsByFdyName" parameterType="String"
|
||||
resultMap="SysTeacherKpiFillingBonusPointsResult">
|
||||
<include refid="selectSysTeacherKpiFillingBonusPointsVo"/>
|
||||
<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>
|
||||
<if test="classType != null and classType != ''">
|
||||
and class_type = #{classType}
|
||||
</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
<select id="selectSysTeacherKpiFillingBonusPointsById" parameterType="Long" resultMap="SysTeacherKpiFillingBonusPointsResult">
|
||||
<include refid="selectSysTeacherKpiFillingBonusPointsVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysTeacherKpiFillingBonusPoints" parameterType="SysTeacherKpiFillingBonusPoints">
|
||||
insert into sys_teacher_kpi_filling_bonus_points
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="bonusType != null and bonusType != ''">bonus_type,</if>
|
||||
<if test="bonusScoring != null">bonus_scoring,</if>
|
||||
<if test="fdyName != null and fdyName != ''">fdy_name,</if>
|
||||
<if test="fillingYear != null and fillingYear != ''">filling_year,</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''">filling_month,</if>
|
||||
<if test="classType != null and classType != ''">class_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="bonusType != null and bonusType != ''">#{bonusType},</if>
|
||||
<if test="bonusScoring != null">#{bonusScoring},</if>
|
||||
<if test="fdyName != null and fdyName != ''">#{fdyName},</if>
|
||||
<if test="fillingYear != null and fillingYear != ''">#{fillingYear},</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''">#{fillingMonth},</if>
|
||||
<if test="classType != null and classType != ''">#{classType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysTeacherKpiFillingBonusPoints" parameterType="SysTeacherKpiFillingBonusPoints">
|
||||
update sys_teacher_kpi_filling_bonus_points
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="bonusType != null and bonusType != ''">bonus_type = #{bonusType},</if>
|
||||
<if test="bonusScoring != null">bonus_scoring = #{bonusScoring},</if>
|
||||
<if test="fdyName != null and fdyName != ''">fdy_name = #{fdyName},</if>
|
||||
<if test="fillingYear != null and fillingYear != ''">filling_year = #{fillingYear},</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''">filling_month = #{fillingMonth},</if>
|
||||
<if test="classType != null and classType != ''">class_type = #{classType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysTeacherKpiFillingBonusPointsById" parameterType="Long">
|
||||
delete
|
||||
from sys_teacher_kpi_filling_bonus_points
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysTeacherKpiFillingBonusPointsByIds" parameterType="String">
|
||||
delete from sys_teacher_kpi_filling_bonus_points where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,114 @@
|
||||
<?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.SysTeacherKpiFillingGraduationGuidanceMapper">
|
||||
|
||||
<resultMap type="SysTeacherKpiFillingGraduationGuidance" id="SysTeacherKpiFillingGraduationGuidanceResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="gradFormAuditScoring" column="grad_form_audit_scoring"/>
|
||||
<result property="stuCareerConsultScoring" column="stu_career_consult_scoring"/>
|
||||
<result property="gradFormGuidanceScoring" column="grad_form_guidance_scoring"/>
|
||||
<result property="fdyName" column="fdy_name"/>
|
||||
<result property="fillingYear" column="filling_year"/>
|
||||
<result property="fillingMonth" column="filling_month"/>
|
||||
<result property="classType" column="class_type"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysTeacherKpiFillingGraduationGuidanceVo">
|
||||
select id, grad_form_audit_scoring, stu_career_consult_scoring, grad_form_guidance_scoring, fdy_name, filling_year, filling_month, class_type
|
||||
from sys_teacher_kpi_filling_graduation_guidance
|
||||
</sql>
|
||||
|
||||
<select id="selectSysTeacherKpiFillingGraduationGuidanceList" parameterType="SysTeacherKpiFillingGraduationGuidance"
|
||||
resultMap="SysTeacherKpiFillingGraduationGuidanceResult">
|
||||
<include refid="selectSysTeacherKpiFillingGraduationGuidanceVo"/>
|
||||
<where>
|
||||
<if test="gradFormAuditScoring != null ">and grad_form_audit_scoring = #{gradFormAuditScoring}</if>
|
||||
<if test="stuCareerConsultScoring != null ">and stu_career_consult_scoring = #{stuCareerConsultScoring}</if>
|
||||
<if test="gradFormGuidanceScoring != null ">and grad_form_guidance_scoring = #{gradFormGuidanceScoring}</if>
|
||||
<if test="fdyName != null and fdyName != ''">and fdy_name like concat('%', #{fdyName}, '%')</if>
|
||||
<if test="fillingYear != null and fillingYear != ''">and filling_year = #{fillingYear}</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''">and filling_month = #{fillingMonth}</if>
|
||||
<if test="classType != null and classType != ''">and class_type = #{classType}</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
<!--根据名称、年份、月份查询-->
|
||||
<select id="selectSysTeacherKpiFillingGraduationGuidanceByFdyName" parameterType="String"
|
||||
resultMap="SysTeacherKpiFillingGraduationGuidanceResult">
|
||||
<include refid="selectSysTeacherKpiFillingGraduationGuidanceVo"/>
|
||||
<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>
|
||||
<if test="classType != null and classType != ''">
|
||||
and class_type = #{classType}
|
||||
</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
<select id="selectSysTeacherKpiFillingGraduationGuidanceById" parameterType="Long" resultMap="SysTeacherKpiFillingGraduationGuidanceResult">
|
||||
<include refid="selectSysTeacherKpiFillingGraduationGuidanceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysTeacherKpiFillingGraduationGuidance" parameterType="SysTeacherKpiFillingGraduationGuidance">
|
||||
insert into sys_teacher_kpi_filling_graduation_guidance
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="gradFormAuditScoring != null">grad_form_audit_scoring,</if>
|
||||
<if test="stuCareerConsultScoring != null">stu_career_consult_scoring,</if>
|
||||
<if test="gradFormGuidanceScoring != null">grad_form_guidance_scoring,</if>
|
||||
<if test="fdyName != null and fdyName != ''">fdy_name,</if>
|
||||
<if test="fillingYear != null and fillingYear != ''">filling_year,</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''">filling_month,</if>
|
||||
<if test="classType != null and classType != ''">class_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="gradFormAuditScoring != null">#{gradFormAuditScoring},</if>
|
||||
<if test="stuCareerConsultScoring != null">#{stuCareerConsultScoring},</if>
|
||||
<if test="gradFormGuidanceScoring != null">#{gradFormGuidanceScoring},</if>
|
||||
<if test="fdyName != null and fdyName != ''">#{fdyName},</if>
|
||||
<if test="fillingYear != null and fillingYear != ''">#{fillingYear},</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''">#{fillingMonth},</if>
|
||||
<if test="classType != null and classType != ''">#{classType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysTeacherKpiFillingGraduationGuidance" parameterType="SysTeacherKpiFillingGraduationGuidance">
|
||||
update sys_teacher_kpi_filling_graduation_guidance
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="gradFormAuditScoring != null">grad_form_audit_scoring = #{gradFormAuditScoring},</if>
|
||||
<if test="stuCareerConsultScoring != null">stu_career_consult_scoring = #{stuCareerConsultScoring},</if>
|
||||
<if test="gradFormGuidanceScoring != null">grad_form_guidance_scoring = #{gradFormGuidanceScoring},</if>
|
||||
<if test="fdyName != null and fdyName != ''">fdy_name = #{fdyName},</if>
|
||||
<if test="fillingYear != null and fillingYear != ''">filling_year = #{fillingYear},</if>
|
||||
<if test="fillingMonth != null and fillingMonth != ''">filling_month = #{fillingMonth},</if>
|
||||
<if test="classType != null and classType != ''">class_type = #{classType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysTeacherKpiFillingGraduationGuidanceById" parameterType="Long">
|
||||
delete
|
||||
from sys_teacher_kpi_filling_graduation_guidance
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysTeacherKpiFillingGraduationGuidanceByIds" parameterType="String">
|
||||
delete from sys_teacher_kpi_filling_graduation_guidance where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user