Files
zhxg_java/srs-flowable/src/main/resources/mapper/StuDisqualificationMapper.xml
2025-07-28 15:14:11 +08:00

212 lines
14 KiB
XML

<?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.flowable.mapper.StuDisqualificationMapper">
<resultMap type="StuDisqualification" id="RtStuDisqualificationResult">
<result property="disqualificationId" column="disqualification_id" />
<result property="applicantName" column="applicant_name" />
<result property="stuNo" column="stu_no" />
<result property="stuName" column="stu_name" />
<result property="stuId" column="stu_id" />
<result property="gender" column="gender" />
<result property="departmentName" column="department_Name" />
<result property="gradeName" column="grade_name" />
<result property="className" column="class_name" />
<result property="mz" column="mz" />
<result property="birthday" column="birthday" />
<result property="parentPhone" column="parent_phone" />
<result property="parentName" column="parent_name" />
<result property="jg" column="jg" />
<result property="hksz2" column="hksz2" />
<result property="attachmentUpload" column="attachment_upload" />
<result property="reasonApplying" column="reason_applying" />
<result property="applySignature" column="apply_signature" />
<result property="applyStatus" column="apply_status" />
<result property="submissionStatus" column="submission_status" />
<result property="dropOutType" column="drop_out_type" />
<result property="processInstanceId" column="process_instance_id" />
<result property="deployId" column="deploy_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="ideologicalEducation" column="ideological_education" />
<result property="instructionSchoolHours" column="instruction_school_hours" />
<result property="ihandlingSuggestion" column="ihandling_suggestion" />
<result property="reentryYear" column="reentry_year" />
<result property="reentryNumber" column="reentry_number" />
<result property="disqualificatioType" column="disqualificatio_type" />
</resultMap>
<sql id="selectRtStuDisqualificationVo">
select disqualification_id, applicant_name, stu_no, stu_name, stu_id, gender, department_Name, grade_name, class_name, mz, birthday, parent_phone, parent_name, jg, hksz2, attachment_upload, reason_applying, apply_signature, apply_status, submission_status, drop_out_type, process_instance_id, deploy_id, create_by, create_time, update_by, update_time, remark, ideological_education, instruction_school_hours, ihandling_suggestion, reentry_year, reentry_number, disqualificatio_type from rt_stu_disqualification
</sql>
<select id="selectRtStuDisqualificationList" parameterType="StuDisqualification" resultMap="RtStuDisqualificationResult">
<include refid="selectRtStuDisqualificationVo"/>
<where>
<if test="applicantName != null and applicantName != ''"> and applicant_name like concat('%', #{applicantName}, '%')</if>
<if test="stuNo != null and stuNo != ''"> and stu_no = #{stuNo}</if>
<if test="stuName != null and stuName != ''"> and stu_name like concat('%', #{stuName}, '%')</if>
<if test="stuId != null "> and stu_id = #{stuId}</if>
<if test="gender != null and gender != ''"> and gender = #{gender}</if>
<if test="departmentName != null and departmentName != ''"> and department_Name like concat('%', #{departmentName}, '%')</if>
<if test="gradeName != null and gradeName != ''"> and grade_name like concat('%', #{gradeName}, '%')</if>
<if test="className != null and className != ''"> and class_name like concat('%', #{className}, '%')</if>
<if test="mz != null and mz != ''"> and mz = #{mz}</if>
<if test="birthday != null and birthday != ''"> and birthday = #{birthday}</if>
<if test="parentPhone != null and parentPhone != ''"> and parent_phone = #{parentPhone}</if>
<if test="parentName != null and parentName != ''"> and parent_name like concat('%', #{parentName}, '%')</if>
<if test="jg != null and jg != ''"> and jg = #{jg}</if>
<if test="hksz2 != null and hksz2 != ''"> and hksz2 = #{hksz2}</if>
<if test="attachmentUpload != null and attachmentUpload != ''"> and attachment_upload = #{attachmentUpload}</if>
<if test="reasonApplying != null and reasonApplying != ''"> and reason_applying = #{reasonApplying}</if>
<if test="applySignature != null and applySignature != ''"> and apply_signature = #{applySignature}</if>
<if test="applyStatus != null "> and apply_status = #{applyStatus}</if>
<if test="submissionStatus != null "> and submission_status = #{submissionStatus}</if>
<if test="dropOutType != null and dropOutType != ''"> and drop_out_type = #{dropOutType}</if>
<if test="processInstanceId != null and processInstanceId != ''"> and process_instance_id = #{processInstanceId}</if>
<if test="deployId != null and deployId != ''"> and deploy_id = #{deployId}</if>
<if test="ideologicalEducation != null and ideologicalEducation != ''"> and ideological_education = #{ideologicalEducation}</if>
<if test="instructionSchoolHours != null and instructionSchoolHours != ''"> and instruction_school_hours = #{instructionSchoolHours}</if>
<if test="ihandlingSuggestion != null and ihandlingSuggestion != ''"> and ihandling_suggestion = #{ihandlingSuggestion}</if>
<if test="reentryYear != null and reentryYear != ''"> and reentry_year = #{reentryYear}</if>
<if test="reentryNumber != null and reentryNumber != ''"> and reentry_number = #{reentryNumber}</if>
<if test="disqualificatioType != null and disqualificatioType != ''"> and disqualificatio_type = #{disqualificatioType}</if>
</where>
</select>
<select id="selectRtStuDisqualificationByDisqualificationId" parameterType="Long" resultMap="RtStuDisqualificationResult">
<include refid="selectRtStuDisqualificationVo"/>
where disqualification_id = #{disqualificationId}
</select>
<insert id="insertRtStuDisqualification" parameterType="StuDisqualification" useGeneratedKeys="true" keyProperty="disqualificationId">
insert into rt_stu_disqualification
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="applicantName != null">applicant_name,</if>
<if test="stuNo != null">stu_no,</if>
<if test="stuName != null">stu_name,</if>
<if test="stuId != null">stu_id,</if>
<if test="gender != null">gender,</if>
<if test="departmentName != null">department_Name,</if>
<if test="gradeName != null">grade_name,</if>
<if test="className != null">class_name,</if>
<if test="mz != null">mz,</if>
<if test="birthday != null">birthday,</if>
<if test="parentPhone != null">parent_phone,</if>
<if test="parentName != null">parent_name,</if>
<if test="jg != null">jg,</if>
<if test="hksz2 != null">hksz2,</if>
<if test="attachmentUpload != null">attachment_upload,</if>
<if test="reasonApplying != null">reason_applying,</if>
<if test="applySignature != null">apply_signature,</if>
<if test="applyStatus != null">apply_status,</if>
<if test="submissionStatus != null">submission_status,</if>
<if test="dropOutType != null">drop_out_type,</if>
<if test="processInstanceId != null">process_instance_id,</if>
<if test="deployId != null">deploy_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="ideologicalEducation != null">ideological_education,</if>
<if test="instructionSchoolHours != null">instruction_school_hours,</if>
<if test="ihandlingSuggestion != null">ihandling_suggestion,</if>
<if test="reentryYear != null">reentry_year,</if>
<if test="reentryNumber != null">reentry_number,</if>
<if test="disqualificatioType != null">disqualificatio_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="applicantName != null">#{applicantName},</if>
<if test="stuNo != null">#{stuNo},</if>
<if test="stuName != null">#{stuName},</if>
<if test="stuId != null">#{stuId},</if>
<if test="gender != null">#{gender},</if>
<if test="departmentName != null">#{departmentName},</if>
<if test="gradeName != null">#{gradeName},</if>
<if test="className != null">#{className},</if>
<if test="mz != null">#{mz},</if>
<if test="birthday != null">#{birthday},</if>
<if test="parentPhone != null">#{parentPhone},</if>
<if test="parentName != null">#{parentName},</if>
<if test="jg != null">#{jg},</if>
<if test="hksz2 != null">#{hksz2},</if>
<if test="attachmentUpload != null">#{attachmentUpload},</if>
<if test="reasonApplying != null">#{reasonApplying},</if>
<if test="applySignature != null">#{applySignature},</if>
<if test="applyStatus != null">#{applyStatus},</if>
<if test="submissionStatus != null">#{submissionStatus},</if>
<if test="dropOutType != null">#{dropOutType},</if>
<if test="processInstanceId != null">#{processInstanceId},</if>
<if test="deployId != null">#{deployId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="ideologicalEducation != null">#{ideologicalEducation},</if>
<if test="instructionSchoolHours != null">#{instructionSchoolHours},</if>
<if test="ihandlingSuggestion != null">#{ihandlingSuggestion},</if>
<if test="reentryYear != null">#{reentryYear},</if>
<if test="reentryNumber != null">#{reentryNumber},</if>
<if test="disqualificatioType != null">#{disqualificatioType},</if>
</trim>
</insert>
<update id="updateRtStuDisqualification" parameterType="StuDisqualification">
update rt_stu_disqualification
<trim prefix="SET" suffixOverrides=",">
<if test="applicantName != null">applicant_name = #{applicantName},</if>
<if test="stuNo != null">stu_no = #{stuNo},</if>
<if test="stuName != null">stu_name = #{stuName},</if>
<if test="stuId != null">stu_id = #{stuId},</if>
<if test="gender != null">gender = #{gender},</if>
<if test="departmentName != null">department_Name = #{departmentName},</if>
<if test="gradeName != null">grade_name = #{gradeName},</if>
<if test="className != null">class_name = #{className},</if>
<if test="mz != null">mz = #{mz},</if>
<if test="birthday != null">birthday = #{birthday},</if>
<if test="parentPhone != null">parent_phone = #{parentPhone},</if>
<if test="parentName != null">parent_name = #{parentName},</if>
<if test="jg != null">jg = #{jg},</if>
<if test="hksz2 != null">hksz2 = #{hksz2},</if>
<if test="attachmentUpload != null">attachment_upload = #{attachmentUpload},</if>
<if test="reasonApplying != null">reason_applying = #{reasonApplying},</if>
<if test="applySignature != null">apply_signature = #{applySignature},</if>
<if test="applyStatus != null">apply_status = #{applyStatus},</if>
<if test="submissionStatus != null">submission_status = #{submissionStatus},</if>
<if test="dropOutType != null">drop_out_type = #{dropOutType},</if>
<if test="processInstanceId != null">process_instance_id = #{processInstanceId},</if>
<if test="deployId != null">deploy_id = #{deployId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="ideologicalEducation != null">ideological_education = #{ideologicalEducation},</if>
<if test="instructionSchoolHours != null">instruction_school_hours = #{instructionSchoolHours},</if>
<if test="ihandlingSuggestion != null">ihandling_suggestion = #{ihandlingSuggestion},</if>
<if test="reentryYear != null">reentry_year = #{reentryYear},</if>
<if test="reentryNumber != null">reentry_number = #{reentryNumber},</if>
<if test="disqualificatioType != null">disqualificatio_type = #{disqualificatioType},</if>
</trim>
where disqualification_id = #{disqualificationId}
</update>
<delete id="deleteRtStuDisqualificationByDisqualificationId" parameterType="Long">
delete from rt_stu_disqualification where disqualification_id = #{disqualificationId}
</delete>
<delete id="deleteRtStuDisqualificationByDisqualificationIds" parameterType="String">
delete from rt_stu_disqualification where disqualification_id in
<foreach item="disqualificationId" collection="array" open="(" separator="," close=")">
#{disqualificationId}
</foreach>
</delete>
</mapper>