初始化
This commit is contained in:
102
srs-flowable/src/main/resources/mapper/DisciplinaryMapper.xml
Normal file
102
srs-flowable/src/main/resources/mapper/DisciplinaryMapper.xml
Normal file
@@ -0,0 +1,102 @@
|
||||
<?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.DisciplinaryMapper">
|
||||
|
||||
<resultMap type="StuDisciplinaryApplication" id="RtStuDisciplinaryApplicationResult">
|
||||
<result property="applicationId" column="application_id" />
|
||||
<result property="applicantId" column="applicant_id" />
|
||||
<result property="penaltyNumber" column="penalty_number" />
|
||||
<result property="stuNo" column="stu_no" />
|
||||
<result property="stuId" column="stu_id" />
|
||||
<result property="penaltyType" column="penalty_type" />
|
||||
<result property="penaltyStatus" column="penalty_status" />
|
||||
<result property="violationDate" column="violation_date" />
|
||||
<result property="expirationDate" column="expiration_date" />
|
||||
<result property="evidenceUpload" column="evidence_upload" />
|
||||
<result property="penaltyRecommendation" column="penalty_recommendation" />
|
||||
<result property="violationRegulations" column="violation_regulations" />
|
||||
<result property="submissionStatus" column="submission_status" />
|
||||
<result property="processInstanceId" column="process_instance_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" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectRtStuDisciplinaryApplicationVo">
|
||||
select application_id, applicant_id, penalty_number, stu_no, stu_id, penalty_type, penalty_status, violation_date, expiration_date, evidence_upload, penalty_recommendation, violation_regulations, submission_status, process_instance_id, create_by, create_time, update_by, update_time, remark from rt_stu_disciplinary_application
|
||||
</sql>
|
||||
|
||||
<update id="updateRtStuDisciplinaryApplication" parameterType="RtStuDisciplinaryApplication">
|
||||
update rt_stu_disciplinary_application
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="applicantId != null">applicant_id = #{applicantId},</if>
|
||||
<if test="applicantName != null">applicant_name = #{applicantName},</if>
|
||||
<if test="penaltyNumber != null">penalty_number = #{penaltyNumber},</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="penaltyType != null">penalty_type = #{penaltyType},</if>
|
||||
<if test="penaltyStatus != null">penalty_status = #{penaltyStatus},</if>
|
||||
<if test="violationDate != null">violation_date = #{violationDate},</if>
|
||||
<if test="expirationDate != null">expiration_date = #{expirationDate},</if>
|
||||
<if test="evidenceUpload != null">evidence_upload = #{evidenceUpload},</if>
|
||||
<if test="penaltyRecommendation != null">penalty_recommendation = #{penaltyRecommendation},</if>
|
||||
<if test="violationRegulations != null">violation_regulations = #{violationRegulations},</if>
|
||||
<if test="submissionStatus != null">submission_status = #{submissionStatus},</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="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="jg != null">jg = #{jg},</if>
|
||||
<if test="hksz2 != null">hksz2 = #{hksz2},</if>
|
||||
<if test="dispositionService != null">disposition_service = #{dispositionService},</if>
|
||||
</trim>
|
||||
where application_id = #{applicationId}
|
||||
</update>
|
||||
|
||||
<update id="updateStudentStatus" parameterType="Student">
|
||||
update srs_student
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="classId != null">class_id = #{classId},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where stu_no = #{stuNo}
|
||||
</update>
|
||||
|
||||
<select id="getApprovalByDeptIdAndRoleKey" resultType="java.lang.Long">
|
||||
SELECT a.user_id FROM sys_user a
|
||||
LEFT JOIN sys_user_role b ON a.user_id=b.user_id
|
||||
LEFT JOIN sys_role c ON b.role_id=c.role_id
|
||||
WHERE a.dept_id=#{deptId} and c.role_key=#{roleKey}
|
||||
</select>
|
||||
|
||||
<select id="selectRtStuDisciplinaryApplicationByApplicationId" parameterType="Long" resultMap="RtStuDisciplinaryApplicationResult">
|
||||
<include refid="selectRtStuDisciplinaryApplicationVo"/>
|
||||
where penalty_number = #{penaltyNumber}
|
||||
</select>
|
||||
|
||||
<select id="getApprovalByRoleKey" resultType="java.lang.Long" >
|
||||
SELECT a.user_id FROM sys_user a
|
||||
LEFT JOIN sys_user_role b ON a.user_id=b.user_id
|
||||
LEFT JOIN sys_role c ON b.role_id=c.role_id
|
||||
WHERE c.role_key=#{roleKey}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
89
srs-flowable/src/main/resources/mapper/LeaveMapper.xml
Normal file
89
srs-flowable/src/main/resources/mapper/LeaveMapper.xml
Normal file
@@ -0,0 +1,89 @@
|
||||
<?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.LeaveMapper">
|
||||
|
||||
<resultMap type="RtStuLeaveApplication" id="RtStuLeaveApplicationResult">
|
||||
<result property="leaveApplicationId" column="leave_application_id" />
|
||||
<result property="stuId" column="stu_id" />
|
||||
<result property="reason" column="reason" />
|
||||
<result property="leaveType" column="leave_type" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<result property="leaveDays" column="leave_days" />
|
||||
<result property="destination" column="destination" />
|
||||
<result property="destinationDetails" column="destination_details" />
|
||||
<result property="safetyPromise" column="safety_promise" />
|
||||
<result property="applicantSignature" column="applicant_signature" />
|
||||
<result property="attachment" column="attachment" />
|
||||
<result property="counselorComments" column="counselor_comments" />
|
||||
<result property="cancellation" column="cancellation" />
|
||||
<result property="leaveStatus" column="leave_status" />
|
||||
<result property="leavingGx" column="leaving_gx" />
|
||||
<result property="status" column="status" />
|
||||
<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="processInstanceId" column="process_instance_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRtStuLeaveApplicationVo">
|
||||
select leave_application_id, stu_id, reason, leave_type, start_date, end_date, leave_days, destination, destination_details, safety_promise, applicant_signature, attachment, counselor_comments, cancellation, leave_status, leaving_gx, status, create_by, create_time, update_by, update_time, remark ,process_instance_id from rt_stu_leave_application
|
||||
</sql>
|
||||
|
||||
|
||||
|
||||
<select id="getCounselorInfo" resultType="com.srs.common.doman.vo.TeacherVo">
|
||||
SELECT d.user_id userId, d.dept_id deptId, d.user_name userName, d.nick_name nickName
|
||||
FROM srs_student a
|
||||
LEFT JOIN srs_class b ON a.class_id = b.class_id
|
||||
LEFT JOIN cph_teacher c ON b.teacher_id = c.teacher_id
|
||||
LEFT JOIN sys_user d ON c.employee_id = d.user_name
|
||||
WHERE a.stu_id = #{stuId}
|
||||
</select>
|
||||
|
||||
<select id="getSecondaryLeaderInfo" resultType="com.srs.common.doman.vo.TeacherVo">
|
||||
SELECT a.user_id userId,a.dept_id deptId,a.nick_name userNick,a.user_name userName FROM sys_user a
|
||||
LEFT JOIN sys_user_post b ON a.user_id = b.user_id
|
||||
LEFT JOIN sys_post c ON b.post_id=c.post_id
|
||||
WHERE a.dept_id=#{deptId} AND c.post_code='ejxysj'
|
||||
</select>
|
||||
|
||||
<select id="selectRtStuLeaveApplicationByLeaveApplicationId"
|
||||
resultType="com.srs.flowable.domain.StuLeaveApplication">
|
||||
<include refid="selectRtStuLeaveApplicationVo"/>
|
||||
where leave_application_id = #{leaveApplicationId}
|
||||
</select>
|
||||
|
||||
<update id="updateRtStuLeaveApplication" parameterType="RtStuLeaveApplication">
|
||||
update rt_stu_leave_application
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="stuId != null">stu_id = #{stuId},</if>
|
||||
<if test="reason != null and reason != ''">reason = #{reason},</if>
|
||||
<if test="leaveType != null and leaveType != ''">leave_type = #{leaveType},</if>
|
||||
<if test="startDate != null">start_date = #{startDate},</if>
|
||||
<if test="endDate != null">end_date = #{endDate},</if>
|
||||
<if test="leaveDays != null">leave_days = #{leaveDays},</if>
|
||||
<if test="destination != null and destination != ''">destination = #{destination},</if>
|
||||
<if test="destinationDetails != null">destination_details = #{destinationDetails},</if>
|
||||
<if test="safetyPromise != null and safetyPromise != ''">safety_promise = #{safetyPromise},</if>
|
||||
<if test="applicantSignature != null and applicantSignature != ''">applicant_signature = #{applicantSignature},</if>
|
||||
<if test="attachment != null">attachment = #{attachment},</if>
|
||||
<if test="counselorComments != null">counselor_comments = #{counselorComments},</if>
|
||||
<if test="cancellation != null">cancellation = #{cancellation},</if>
|
||||
<if test="leaveStatus != null and leaveStatus != ''">leave_status = #{leaveStatus},</if>
|
||||
<if test="leavingGx != null and leavingGx != ''">leaving_gx = #{leavingGx},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</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="processInstanceId != null">process_instance_id = #{processInstanceId},</if>
|
||||
</trim>
|
||||
where leave_application_id = #{leaveApplicationId}
|
||||
</update>
|
||||
</mapper>
|
||||
118
srs-flowable/src/main/resources/mapper/RelieveMapper.xml
Normal file
118
srs-flowable/src/main/resources/mapper/RelieveMapper.xml
Normal file
@@ -0,0 +1,118 @@
|
||||
<?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.RelieveMapper">
|
||||
|
||||
<resultMap type="StuDisciplinaryRelieve" id="RtStuDisciplinaryRelieveResult">
|
||||
<result property="relieveId" column="relieve_id"/>
|
||||
<result property="penaltyNumber" column="penalty_number"/>
|
||||
<result property="relieveNumber" column="relieve_number" />
|
||||
<result property="stuNo" column="stu_no"/>
|
||||
<result property="stuName" column="stu_name"/>
|
||||
<result property="stuId" column="stu_id"/>
|
||||
<result property="penaltyType" column="penalty_type"/>
|
||||
<result property="penaltyStatus" column="penalty_status"/>
|
||||
<result property="violationDate" column="violation_date"/>
|
||||
<result property="dispositionDescription" column="disposition_description"/>
|
||||
<result property="applicationDismissal" column="application_dismissal"/>
|
||||
<result property="ideologicalEducation" column="ideological_education"/>
|
||||
<result property="submissionStatus" column="submission_status"/>
|
||||
<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="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="jg" column="jg"/>
|
||||
<result property="hksz2" column="hksz2"/>
|
||||
<result property="relieveService" column="relieve_service" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRtStuDisciplinaryRelieveVo">
|
||||
select relieve_id, penalty_number, relieve_number, stu_no, stu_name, stu_id, penalty_type, penalty_status,
|
||||
violation_date, disposition_description, application_dismissal, ideological_education, submission_status,
|
||||
process_instance_id, deploy_id, create_by, create_time, update_by, update_time, remark, gender, department_Name,
|
||||
grade_name, class_name, mz, birthday, jg, hksz2, relieve_service from rt_stu_disciplinary_relieve
|
||||
</sql>
|
||||
|
||||
|
||||
|
||||
<update id="updateRtStuDisciplinaryRelieve" parameterType="RtStuDisciplinaryRelieve">
|
||||
update rt_stu_disciplinary_relieve
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="penaltyNumber != null">penalty_number = #{penaltyNumber},</if>
|
||||
<if test="relieveNumber != null">relieve_number = #{relieveNumber},</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="penaltyType != null">penalty_type = #{penaltyType},</if>
|
||||
<if test="penaltyStatus != null">penalty_status = #{penaltyStatus},</if>
|
||||
<if test="violationDate != null">violation_date = #{violationDate},</if>
|
||||
<if test="dispositionDescription != null">disposition_description = #{dispositionDescription},</if>
|
||||
<if test="applicationDismissal != null">application_dismissal = #{applicationDismissal},</if>
|
||||
<if test="ideologicalEducation != null">ideological_education = #{ideologicalEducation},</if>
|
||||
<if test="submissionStatus != null">submission_status = #{submissionStatus},</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="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="jg != null">jg = #{jg},</if>
|
||||
<if test="hksz2 != null">hksz2 = #{hksz2},</if>
|
||||
<if test="relieveService != null">relieve_service = #{relieveService},</if>
|
||||
</trim>
|
||||
where relieve_id = #{relieveId}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="getApprovalByDeptIdAndRoleKey" resultType="java.lang.Long">
|
||||
SELECT a.user_id
|
||||
FROM sys_user a
|
||||
LEFT JOIN sys_user_role b ON a.user_id = b.user_id
|
||||
LEFT JOIN sys_role c ON b.role_id = c.role_id
|
||||
WHERE a.dept_id = #{deptId}
|
||||
and c.role_key = #{roleKey}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getApprovalByRoleKey" resultType="java.lang.Long">
|
||||
SELECT a.user_id
|
||||
FROM sys_user a
|
||||
LEFT JOIN sys_user_role b ON a.user_id = b.user_id
|
||||
LEFT JOIN sys_role c ON b.role_id = c.role_id
|
||||
WHERE c.role_key = #{roleKey}
|
||||
</select>
|
||||
|
||||
<select id="getCounselorInfo" resultType="java.util.Map">
|
||||
SELECT e.user_id userId, e.dept_id deptId
|
||||
FROM sys_user a
|
||||
LEFT JOIN srs_student d ON a.user_name = d.stu_no
|
||||
LEFT JOIN srs_class b ON d.class_id = b.class_id
|
||||
LEFT JOIN cph_teacher c ON b.teacher_id = c.teacher_id
|
||||
LEFT JOIN sys_user e ON c.employee_id = e.user_name
|
||||
WHERE a.user_id = #{stuUserId}
|
||||
</select>
|
||||
|
||||
<select id="selectRtStuDisciplinaryRelieveByRelieveId" parameterType="Long" resultMap="RtStuDisciplinaryRelieveResult">
|
||||
<include refid="selectRtStuDisciplinaryRelieveVo"/>
|
||||
where relieve_id = #{relieveId}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,211 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,224 @@
|
||||
<?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.StuDropOutSchoolMapper">
|
||||
|
||||
<resultMap type="StuDropOutSchool" id="RtStuDropOutSchoolResult">
|
||||
<result property="dropOutSchoolId" column="drop_out_school_id" />
|
||||
<result property="applicantId" column="applicant_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="ideologicalEducation" column="ideological_education" />
|
||||
<result property="instructionSchoolHours" column="Instruction_school_hours" />
|
||||
<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="quitStarttime" column="quit_startTime" />
|
||||
<result property="quitEndtime" column="quit_endTime" />
|
||||
<result property="quitYear" column="quit_year" />
|
||||
<result property="quitNumber" column="quit_number" />
|
||||
<result property="dropOutCategory" column="drop_out_category" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRtStuDropOutSchoolVo">
|
||||
select drop_out_school_id, applicant_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, ideological_education,
|
||||
Instruction_school_hours, apply_status, submission_status, drop_out_type, process_instance_id, deploy_id, create_by, create_time,
|
||||
update_by, update_time, remark, quit_startTime, quit_endTime, quit_year, quit_number,drop_out_category from rt_stu_drop_out_school
|
||||
</sql>
|
||||
|
||||
<select id="selectRtStuDropOutSchoolList" parameterType="StuDropOutSchool" resultMap="RtStuDropOutSchoolResult">
|
||||
<include refid="selectRtStuDropOutSchoolVo"/>
|
||||
<where>
|
||||
<if test="applicantId != null "> and applicant_id = #{applicantId}</if>
|
||||
<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="ideologicalEducation != null and ideologicalEducation != ''"> and ideological_education = #{ideologicalEducation}</if>
|
||||
<if test="instructionSchoolHours != null and instructionSchoolHours != ''"> and Instruction_school_hours = #{instructionSchoolHours}</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="quitStarttime != null "> and quit_startTime = #{quitStarttime}</if>
|
||||
<if test="quitEndtime != null "> and quit_endTime = #{quitEndtime}</if>
|
||||
<if test="quitYear != null and quitYear != ''"> and quit_year = #{quitYear}</if>
|
||||
<if test="quitNumber != null and quitNumber != ''"> and quit_number = #{quitNumber}</if>
|
||||
<if test="dropOutCategory != null and dropOutCategory != ''"> and drop_out_category = #{dropOutCategory}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectRtStuDropOutSchoolByDropOutSchoolId" parameterType="Long" resultMap="RtStuDropOutSchoolResult">
|
||||
<include refid="selectRtStuDropOutSchoolVo"/>
|
||||
where drop_out_school_id = #{dropOutSchoolId}
|
||||
</select>
|
||||
|
||||
<insert id="insertRtStuDropOutSchool" parameterType="RtStuDropOutSchool" useGeneratedKeys="true" keyProperty="dropOutSchoolId">
|
||||
insert into rt_stu_drop_out_school
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="applicantId != null">applicant_id,</if>
|
||||
<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="ideologicalEducation != null">ideological_education,</if>
|
||||
<if test="instructionSchoolHours != null">Instruction_school_hours,</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="quitStarttime != null">quit_startTime,</if>
|
||||
<if test="quitEndtime != null">quit_endTime,</if>
|
||||
<if test="quitYear != null">quit_year,</if>
|
||||
<if test="quitNumber != null">quit_number,</if>
|
||||
<if test="dropOutCategory != null">drop_out_category,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="applicantId != null">#{applicantId},</if>
|
||||
<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="ideologicalEducation != null">#{ideologicalEducation},</if>
|
||||
<if test="instructionSchoolHours != null">#{instructionSchoolHours},</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="quitStarttime != null">#{quitStarttime},</if>
|
||||
<if test="quitEndtime != null">#{quitEndtime},</if>
|
||||
<if test="quitYear != null">#{quitYear},</if>
|
||||
<if test="quitNumber != null">#{quitNumber},</if>
|
||||
<if test="dropOutCategory != null">#{dropOutCategory},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateRtStuDropOutSchool" parameterType="RtStuDropOutSchool">
|
||||
update rt_stu_drop_out_school
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="applicantId != null">applicant_id = #{applicantId},</if>
|
||||
<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="ideologicalEducation != null">ideological_education = #{ideologicalEducation},</if>
|
||||
<if test="instructionSchoolHours != null">Instruction_school_hours = #{instructionSchoolHours},</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="quitStarttime != null">quit_startTime = #{quitStarttime},</if>
|
||||
<if test="quitEndtime != null">quit_endTime = #{quitEndtime},</if>
|
||||
<if test="quitYear != null">quit_year = #{quitYear},</if>
|
||||
<if test="quitNumber != null">quit_number = #{quitNumber},</if>
|
||||
<if test="dropOutCategory != null">drop_out_category = #{dropOutCategory},</if>
|
||||
</trim>
|
||||
where drop_out_school_id = #{dropOutSchoolId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteRtStuDropOutSchoolByDropOutSchoolId" parameterType="Long">
|
||||
delete from rt_stu_drop_out_school where drop_out_school_id = #{dropOutSchoolId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteRtStuDropOutSchoolByDropOutSchoolIds" parameterType="String">
|
||||
delete from rt_stu_drop_out_school where drop_out_school_id in
|
||||
<foreach item="dropOutSchoolId" collection="array" open="(" separator="," close=")">
|
||||
#{dropOutSchoolId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
219
srs-flowable/src/main/resources/mapper/StuQuitSchoolMapper.xml
Normal file
219
srs-flowable/src/main/resources/mapper/StuQuitSchoolMapper.xml
Normal file
@@ -0,0 +1,219 @@
|
||||
<?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.StuQuitSchoolMapper">
|
||||
|
||||
<resultMap type="StuQuitSchool" id="RtStuQuitSchoolResult">
|
||||
<result property="quitSchoolId" column="quit_school_id" />
|
||||
<result property="applicantId" column="applicant_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="ideologicalEducation" column="ideological_education" />
|
||||
<result property="instructionSchoolHours" column="Instruction_school_hours" />
|
||||
<result property="applyStatus" column="apply_status" />
|
||||
<result property="submissionStatus" column="submission_status" />
|
||||
<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="quitType" column="quit_type" />
|
||||
<result property="quitStartTime" column="quit_startTime" />
|
||||
<result property="quitEndTime" column="quit_endTime" />
|
||||
<result property="quitYear" column="quit_year" />
|
||||
<result property="quitNumber" column="quit_number" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRtStuQuitSchoolVo">
|
||||
select quit_school_id, applicant_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, ideological_education,
|
||||
Instruction_school_hours, apply_status, submission_status, process_instance_id, deploy_id, create_by, create_time, update_by,
|
||||
update_time, remark,quit_type,quit_startTime,quit_endTime,quit_year,quit_number from rt_stu_quit_school
|
||||
</sql>
|
||||
|
||||
<select id="selectRtStuQuitSchoolList" parameterType="StuQuitSchool" resultMap="RtStuQuitSchoolResult">
|
||||
<include refid="selectRtStuQuitSchoolVo"/>
|
||||
<where>
|
||||
<if test="applicantId != null "> and applicant_id = #{applicantId}</if>
|
||||
<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="ideologicalEducation != null and ideologicalEducation != ''"> and ideological_education = #{ideologicalEducation}</if>
|
||||
<if test="instructionSchoolHours != null and instructionSchoolHours != ''"> and Instruction_school_hours = #{instructionSchoolHours}</if>
|
||||
<if test="applyStatus != null "> and apply_status = #{applyStatus}</if>
|
||||
<if test="submissionStatus != null "> and submission_status = #{submissionStatus}</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="quitType != null and quitType != ''"> and quit_type = #{quitType}</if>
|
||||
<if test="quitStartTime != null and quitStartTime != ''"> and quit_startTime = #{quitStartTime}</if>
|
||||
<if test="quitEndTime != null and quitEndTime != ''"> and quit_endTime = #{quitEndTime}</if>
|
||||
<if test="quitYear != null and quitYear != ''"> and quit_year = #{quitYear}</if>
|
||||
<if test="quitNumber != null and quitNumber != ''"> and quit_number = #{quitNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectRtStuQuitSchoolByQuitSchoolId" parameterType="Long" resultMap="RtStuQuitSchoolResult">
|
||||
<include refid="selectRtStuQuitSchoolVo"/>
|
||||
where quit_school_id = #{quitSchoolId}
|
||||
</select>
|
||||
|
||||
<insert id="insertRtStuQuitSchool" parameterType="StuQuitSchool" useGeneratedKeys="true" keyProperty="quitSchoolId">
|
||||
insert into rt_stu_quit_school
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="applicantId != null">applicant_id,</if>
|
||||
<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="ideologicalEducation != null">ideological_education,</if>
|
||||
<if test="instructionSchoolHours != null">Instruction_school_hours,</if>
|
||||
<if test="applyStatus != null">apply_status,</if>
|
||||
<if test="submissionStatus != null">submission_status,</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="quitType != null">quit_type,</if>
|
||||
<if test="quitStartTime != null">quit_startTime,</if>
|
||||
<if test="quitEndTime != null">quit_endTime,</if>
|
||||
<if test="quitYear != null ">quit_year,</if>
|
||||
<if test="quitNumber != null ">quit_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="applicantId != null">#{applicantId},</if>
|
||||
<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="ideologicalEducation != null">#{ideologicalEducation},</if>
|
||||
<if test="instructionSchoolHours != null">#{instructionSchoolHours},</if>
|
||||
<if test="applyStatus != null">#{applyStatus},</if>
|
||||
<if test="submissionStatus != null">#{submissionStatus},</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="quitType != null">#{quitType},</if>
|
||||
<if test="quitStartTime != null">#{quitStartTime},</if>
|
||||
<if test="quitEndTime != null">#{quitEndTime},</if>
|
||||
<if test="quitYear != null ">#{quitYear},</if>
|
||||
<if test="quitNumber != null ">#{quitNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateRtStuQuitSchool" parameterType="StuQuitSchool">
|
||||
update rt_stu_quit_school
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="applicantId != null">applicant_id = #{applicantId},</if>
|
||||
<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="ideologicalEducation != null">ideological_education = #{ideologicalEducation},</if>
|
||||
<if test="instructionSchoolHours != null">Instruction_school_hours = #{instructionSchoolHours},</if>
|
||||
<if test="applyStatus != null">apply_status = #{applyStatus},</if>
|
||||
<if test="submissionStatus != null">submission_status = #{submissionStatus},</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="quitType != null">quit_type = #{quitType},</if>
|
||||
<if test="quitStartTime != null">quit_startTime = #{quitStartTime},</if>
|
||||
<if test="quitEndTime != null">quit_endTime = #{quitEndTime},</if>
|
||||
<if test="quitYear != null ">quit_year = #{quitYear},</if>
|
||||
<if test="quitNumber != null ">quit_number = #{quitNumber},</if>
|
||||
</trim>
|
||||
where quit_school_id = #{quitSchoolId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteRtStuQuitSchoolByQuitSchoolId" parameterType="Long">
|
||||
delete from rt_stu_quit_school where quit_school_id = #{quitSchoolId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteRtStuQuitSchoolByQuitSchoolIds" parameterType="String">
|
||||
delete from rt_stu_quit_school where quit_school_id in
|
||||
<foreach item="quitSchoolId" collection="array" open="(" separator="," close=")">
|
||||
#{quitSchoolId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,244 @@
|
||||
<?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.StuReentrySchoolMapper">
|
||||
|
||||
<resultMap type="StuReentrySchool" id="RtStuReentrySchoolResult">
|
||||
<result property="reentryId" column="reentry_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="reentryType" column="reentry_type" />
|
||||
<result property="quitNumber" column="quit_number" />
|
||||
<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="quitTime" column="quit_time" />
|
||||
<result property="reentryTime" column="reentry_time" />
|
||||
<result property="reentryClass" column="reentry_class" />
|
||||
<result property="reentryDept" column="reentry_dept" />
|
||||
<result property="reentryCause" column="reentry_cause" />
|
||||
<result property="reentryYear" column="reentry_year" />
|
||||
<result property="reentryNumber" column="reentry_number" />
|
||||
<result property="quitCategory" column="quit_category" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRtStuReentrySchoolVo">
|
||||
select reentry_id, 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, reentry_type, quit_number, process_instance_id,
|
||||
deploy_id, create_by, create_time, update_by, update_time, remark, ideological_education, instruction_school_hours, ihandling_suggestion,
|
||||
quit_time, reentry_time, reentry_class, reentry_dept, reentry_cause, reentry_year, reentry_number, quit_category,applicant_name from rt_stu_reentry_school
|
||||
</sql>
|
||||
|
||||
<select id="selectRtStuReentrySchoolList" parameterType="RtStuReentrySchool" resultMap="RtStuReentrySchoolResult">
|
||||
<include refid="selectRtStuReentrySchoolVo"/>
|
||||
<where>
|
||||
<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="reentryType != null and reentryType != ''"> and reentry_type = #{reentryType}</if>
|
||||
<if test="quitNumber != null and quitNumber != ''"> and quit_number = #{quitNumber}</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="quitTime != null "> and quit_time = #{quitTime}</if>
|
||||
<if test="reentryTime != null "> and reentry_time = #{reentryTime}</if>
|
||||
<if test="reentryClass != null and reentryClass != ''"> and reentry_class = #{reentryClass}</if>
|
||||
<if test="reentryDept != null and reentryDept != ''"> and reentry_dept = #{reentryDept}</if>
|
||||
<if test="reentryCause != null "> and reentry_cause = #{reentryCause}</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="quitCategory != null and quitCategory != ''"> and quit_category = #{quitCategory}</if>
|
||||
</where>
|
||||
ORDER BY create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectRtStuReentrySchoolByReentryId" parameterType="Long" resultMap="RtStuReentrySchoolResult">
|
||||
<include refid="selectRtStuReentrySchoolVo"/>
|
||||
where reentry_id = #{reentryId}
|
||||
</select>
|
||||
|
||||
<insert id="insertRtStuReentrySchool" parameterType="RtStuReentrySchool" useGeneratedKeys="true" keyProperty="reentryId">
|
||||
insert into rt_stu_reentry_school
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<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="reentryType != null">reentry_type,</if>
|
||||
<if test="quitNumber != null">quit_number,</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="quitTime != null">quit_time,</if>
|
||||
<if test="reentryTime != null">reentry_time,</if>
|
||||
<if test="reentryClass != null">reentry_class,</if>
|
||||
<if test="reentryDept != null">reentry_dept,</if>
|
||||
<if test="reentryCause != null">reentry_cause,</if>
|
||||
<if test="reentryYear != null">reentry_year,</if>
|
||||
<if test="reentryNumber != null">reentry_number,</if>
|
||||
<if test="quitCategory != null">quit_category,</if>
|
||||
<if test="applicantName != null">applicant_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<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="reentryType != null">#{reentryType},</if>
|
||||
<if test="quitNumber != null">#{quitNumber},</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="quitTime != null">#{quitTime},</if>
|
||||
<if test="reentryTime != null">#{reentryTime},</if>
|
||||
<if test="reentryClass != null">#{reentryClass},</if>
|
||||
<if test="reentryDept != null">#{reentryDept},</if>
|
||||
<if test="reentryCause != null">#{reentryCause},</if>
|
||||
<if test="reentryYear != null">#{reentryYear},</if>
|
||||
<if test="reentryNumber != null">#{reentryNumber},</if>
|
||||
<if test="quitCategory != null">#{quitCategory},</if>
|
||||
<if test="applicantName != null">#{applicantName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateRtStuReentrySchool" parameterType="RtStuReentrySchool">
|
||||
update rt_stu_reentry_school
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<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="reentryType != null">reentry_type = #{reentryType},</if>
|
||||
<if test="quitNumber != null">quit_number = #{quitNumber},</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="quitTime != null">quit_time = #{quitTime},</if>
|
||||
<if test="reentryTime != null">reentry_time = #{reentryTime},</if>
|
||||
<if test="reentryClass != null">reentry_class = #{reentryClass},</if>
|
||||
<if test="reentryDept != null">reentry_dept = #{reentryDept},</if>
|
||||
<if test="reentryCause != null">reentry_cause = #{reentryCause},</if>
|
||||
<if test="reentryYear != null">reentry_year = #{reentryYear},</if>
|
||||
<if test="reentryNumber != null">reentry_number = #{reentryNumber},</if>
|
||||
<if test="quitCategory != null">quit_category = #{quitCategory},</if>
|
||||
<if test="applicantName != null">applicant_name = #{applicantName},</if>
|
||||
</trim>
|
||||
where reentry_id = #{reentryId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteRtStuReentrySchoolByReentryId" parameterType="Long">
|
||||
delete from rt_stu_reentry_school where reentry_id = #{reentryId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteRtStuReentrySchoolByReentryIds" parameterType="String">
|
||||
delete from rt_stu_reentry_school where reentry_id in
|
||||
<foreach item="reentryId" collection="array" open="(" separator="," close=")">
|
||||
#{reentryId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user