应征入伍保留学籍申请表-审核记录查询修复

This commit is contained in:
2025-11-18 11:47:15 +08:00
parent 0aeb9f2dd8
commit 35259d7a15

View File

@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.srs.routine.mapper.RtEnlistmentReserveApprovalMapper"> <mapper namespace="com.srs.routine.mapper.RtEnlistmentReserveApprovalMapper">
<resultMap type="EnlistmentReserveApproval" id="RtEnlistmentReserveApprovalResult"> <resultMap type="RtEnlistmentReserveApproval" id="RtEnlistmentReserveApprovalResult">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="applyId" column="apply_id"/> <result property="applyId" column="apply_id"/>
<result property="processInstanceId" column="process_instance_id"/> <result property="processInstanceId" column="process_instance_id"/>
@@ -20,27 +20,47 @@
</resultMap> </resultMap>
<sql id="selectRtEnlistmentReserveApprovalVo"> <sql id="selectRtEnlistmentReserveApprovalVo">
select id, apply_id, process_instance_id, task_id, node_name, approver_id, approver_name, approval_opinion, approval_result, approval_time, student_name, student_no from rt_enlistment_reserve_approval select id,
apply_id,
process_instance_id,
task_id,
node_name,
approver_id,
approver_name,
approval_opinion,
approval_result,
approval_time,
student_name,
student_no
from rt_enlistment_reserve_approval
</sql> </sql>
<select id="selectRtEnlistmentReserveApprovalList" parameterType="EnlistmentReserveApproval" resultMap="RtEnlistmentReserveApprovalResult"> <select id="selectRtEnlistmentReserveApprovalList" parameterType="EnlistmentReserveApproval"
resultMap="RtEnlistmentReserveApprovalResult">
<include refid="selectRtEnlistmentReserveApprovalVo"/> <include refid="selectRtEnlistmentReserveApprovalVo"/>
<where> <where>
<if test="applyId != null ">and apply_id = #{applyId}</if> <if test="applyId != null ">and apply_id = #{applyId}</if>
<if test="processInstanceId != null and processInstanceId != ''"> and process_instance_id = #{processInstanceId}</if> <if test="processInstanceId != null and processInstanceId != ''">and process_instance_id =
#{processInstanceId}
</if>
<if test="taskId != null and taskId != ''">and task_id = #{taskId}</if> <if test="taskId != null and taskId != ''">and task_id = #{taskId}</if>
<if test="nodeName != null and nodeName != ''">and node_name like concat('%', #{nodeName}, '%')</if> <if test="nodeName != null and nodeName != ''">and node_name like concat('%', #{nodeName}, '%')</if>
<if test="approverId != null ">and approver_id = #{approverId}</if> <if test="approverId != null ">and approver_id = #{approverId}</if>
<if test="approverName != null and approverName != ''"> and approver_name like concat('%', #{approverName}, '%')</if> <if test="approverName != null and approverName != ''">and approver_name like concat('%', #{approverName},
'%')
</if>
<if test="approvalOpinion != null and approvalOpinion != ''">and approval_opinion = #{approvalOpinion}</if> <if test="approvalOpinion != null and approvalOpinion != ''">and approval_opinion = #{approvalOpinion}</if>
<if test="approvalResult != null ">and approval_result = #{approvalResult}</if> <if test="approvalResult != null ">and approval_result = #{approvalResult}</if>
<if test="approvalTime != null ">and approval_time = #{approvalTime}</if> <if test="approvalTime != null ">and approval_time = #{approvalTime}</if>
<if test="studentName != null and studentName != ''"> and student_name like concat('%', #{studentName}, '%')</if> <if test="studentName != null and studentName != ''">and student_name like concat('%', #{studentName},
'%')
</if>
<if test="studentNo != null and studentNo != ''">and student_no = #{studentNo}</if> <if test="studentNo != null and studentNo != ''">and student_no = #{studentNo}</if>
</where> </where>
</select> </select>
<select id="selectRtEnlistmentReserveApprovalById" parameterType="Long" resultMap="RtEnlistmentReserveApprovalResult"> <select id="selectRtEnlistmentReserveApprovalById" parameterType="Long"
resultMap="RtEnlistmentReserveApprovalResult">
<include refid="selectRtEnlistmentReserveApprovalVo"/> <include refid="selectRtEnlistmentReserveApprovalVo"/>
where id = #{id} where id = #{id}
</select> </select>
@@ -61,7 +81,8 @@
</where> </where>
</select> </select>
<insert id="insertRtEnlistmentReserveApproval" parameterType="EnlistmentReserveApproval" useGeneratedKeys="true" keyProperty="id"> <insert id="insertRtEnlistmentReserveApproval" parameterType="EnlistmentReserveApproval" useGeneratedKeys="true"
keyProperty="id">
insert into rt_enlistment_reserve_approval insert into rt_enlistment_reserve_approval
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="applyId != null">apply_id,</if> <if test="applyId != null">apply_id,</if>
@@ -95,7 +116,9 @@
update rt_enlistment_reserve_approval update rt_enlistment_reserve_approval
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="applyId != null">apply_id = #{applyId},</if> <if test="applyId != null">apply_id = #{applyId},</if>
<if test="processInstanceId != null and processInstanceId != ''">process_instance_id = #{processInstanceId},</if> <if test="processInstanceId != null and processInstanceId != ''">process_instance_id =
#{processInstanceId},
</if>
<if test="taskId != null and taskId != ''">task_id = #{taskId},</if> <if test="taskId != null and taskId != ''">task_id = #{taskId},</if>
<if test="nodeName != null and nodeName != ''">node_name = #{nodeName},</if> <if test="nodeName != null and nodeName != ''">node_name = #{nodeName},</if>
<if test="approverId != null">approver_id = #{approverId},</if> <if test="approverId != null">approver_id = #{approverId},</if>
@@ -110,7 +133,9 @@
</update> </update>
<delete id="deleteRtEnlistmentReserveApprovalById" parameterType="Long"> <delete id="deleteRtEnlistmentReserveApprovalById" parameterType="Long">
delete from rt_enlistment_reserve_approval where id = #{id} delete
from rt_enlistment_reserve_approval
where id = #{id}
</delete> </delete>
<delete id="deleteRtEnlistmentReserveApprovalByIds" parameterType="String"> <delete id="deleteRtEnlistmentReserveApprovalByIds" parameterType="String">