学生资助、学生奖惩、学籍异动内容修改

This commit is contained in:
2025-12-03 10:00:14 +08:00
parent 310bedb4b5
commit f8b635f060
54 changed files with 518 additions and 389 deletions

View File

@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.srs.teacher.mapper.SysTeacherBasicmessageMapper">
<resultMap type="SysTeacherBasicmessage" id="SysTeacherBasicmessageResult">
<result property="teacherId" column="teacher_id" />
<result property="name" column="name" />
@@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="level2units" column="level2units" />
<result property="serviceHours" column="serviceHours" />
<result property="jobNature" column="jobNature" />
<result property="professionalTitle" column="professional_title" />
<result property="joinWorkHours" column="joinWorkHours" />
<result property="highestEducation" column="highestEducation" />
<result property="educated" column="educated" />
@@ -46,12 +47,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectSysTeacherBasicmessageVo">
select teacher_id, name, gender, birthday, nation, photo, political, wechat, phone, address, identity, qqnumber, marriage, anotherDuties, level2units, serviceHours, jobNature, joinWorkHours, highestEducation, educated, study, lastestEducation, awardingInstitutions, email, college from sys_teacher_basicmessage
select teacher_id, name, gender, birthday, nation, photo, political, wechat, phone, address, identity, qqnumber, marriage, anotherDuties, level2units, serviceHours, jobNature, professional_title, joinWorkHours, highestEducation, educated, study, lastestEducation, awardingInstitutions, email, college from sys_teacher_basicmessage
</sql>
<select id="selectSysTeacherBasicmessageList" parameterType="SysTeacherBasicmessage" resultMap="SysTeacherBasicmessageResult">
<include refid="selectSysTeacherBasicmessageVo"/>
<where>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="gender != null and gender != ''"> and gender = #{gender}</if>
<if test="birthday != null "> and birthday = #{birthday}</if>
@@ -68,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="level2units != null and level2units != ''"> and level2units = #{level2units}</if>
<if test="serviceHours != null and serviceHours != ''"> and serviceHours = #{serviceHours}</if>
<if test="jobNature != null and jobNature != ''"> and jobNature = #{jobNature}</if>
<if test="professionalTitle != null and professionalTitle != ''"> and professional_title = #{professionalTitle}</if>
<if test="joinWorkHours != null and joinWorkHours != ''"> and joinWorkHours = #{joinWorkHours}</if>
<if test="highestEducation != null and highestEducation != ''"> and highestEducation = #{highestEducation}</if>
<if test="educated != null and educated != ''"> and educated = #{educated}</if>
@@ -78,15 +80,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="college != null and college != ''"> and college = #{college}</if>
</where>
</select>
<select id="selectSysTeacherBasicmessageByTeacherId" parameterType="Long" resultMap="SysTeacherBasicmessageSysTeacherTakeclassResult">
select a.teacher_id, a.name, a.gender, a.birthday, a.nation, a.photo, a.political, a.wechat, a.phone, a.address, a.identity, a.qqnumber, a.marriage, a.anotherDuties, a.level2units, a.serviceHours, a.jobNature, a.joinWorkHours, a.highestEducation, a.educated, a.study, a.lastestEducation, a.awardingInstitutions, a.email, a.college,
select a.teacher_id, a.name, a.gender, a.birthday, a.nation, a.photo, a.political, a.wechat, a.phone, a.address, a.identity, a.qqnumber, a.marriage, a.anotherDuties, a.level2units, a.serviceHours, a.jobNature, a.professional_title, a.joinWorkHours, a.highestEducation, a.educated, a.study, a.lastestEducation, a.awardingInstitutions, a.email, a.college,
b.takeclass_id as sub_takeclass_id, b.teacher_id as sub_teacher_id, b.college as sub_college, b.grade as sub_grade, b.classteam as sub_classteam, b.number as sub_number
from sys_teacher_basicmessage a
left join sys_teacher_takeclass b on b.teacher_id = a.teacher_id
where a.teacher_id = #{teacherId}
</select>
<insert id="insertSysTeacherBasicmessage" parameterType="SysTeacherBasicmessage" useGeneratedKeys="true" keyProperty="teacherId">
insert into sys_teacher_basicmessage
<trim prefix="(" suffix=")" suffixOverrides=",">
@@ -107,6 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="level2units != null">level2units,</if>
<if test="serviceHours != null">serviceHours,</if>
<if test="jobNature != null">jobNature,</if>
<if test="professionalTitle != null">professional_title,</if>
<if test="joinWorkHours != null">joinWorkHours,</if>
<if test="highestEducation != null">highestEducation,</if>
<if test="educated != null">educated,</if>
@@ -134,6 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="level2units != null">#{level2units},</if>
<if test="serviceHours != null">#{serviceHours},</if>
<if test="jobNature != null">#{jobNature},</if>
<if test="professionalTitle != null">#{professionalTitle},</if>
<if test="joinWorkHours != null">#{joinWorkHours},</if>
<if test="highestEducation != null">#{highestEducation},</if>
<if test="educated != null">#{educated},</if>
@@ -164,6 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="level2units != null">level2units = #{level2units},</if>
<if test="serviceHours != null">serviceHours = #{serviceHours},</if>
<if test="jobNature != null">jobNature = #{jobNature},</if>
<if test="professionalTitle != null">professional_title = #{professionalTitle},</if>
<if test="joinWorkHours != null">joinWorkHours = #{joinWorkHours},</if>
<if test="highestEducation != null">highestEducation = #{highestEducation},</if>
<if test="educated != null">educated = #{educated},</if>
@@ -181,14 +186,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteSysTeacherBasicmessageByTeacherIds" parameterType="String">
delete from sys_teacher_basicmessage where teacher_id in
delete from sys_teacher_basicmessage where teacher_id in
<foreach item="teacherId" collection="array" open="(" separator="," close=")">
#{teacherId}
</foreach>
</delete>
<delete id="deleteSysTeacherTakeclassByTeacherIds" parameterType="String">
delete from sys_teacher_takeclass where teacher_id in
delete from sys_teacher_takeclass where teacher_id in
<foreach item="teacherId" collection="array" open="(" separator="," close=")">
#{teacherId}
</foreach>
@@ -204,4 +209,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
( #{item.takeclassId}, #{item.teacherId}, #{item.college}, #{item.grade}, #{item.classteam}, #{item.number})
</foreach>
</insert>
</mapper>
</mapper>