Commit 31617862 by jianan

审批状态筛选问题修改

parent a5384511
......@@ -184,13 +184,13 @@
</if>
<if test="status != null">
<choose>
<when test="status = 0 ">
<when test='status == "0" '>
and r.approving_status is null
</when>
<when test="status = 1 ">
<when test='status == "1" '>
and r.approving_status = 1
</when>
<when test="status = 2 ">
<when test='status == "2" '>
and r.approving_status = 0
</when>
</choose>
......
......@@ -42,7 +42,19 @@
on b.id = r.hiring_basic_info_id
where (m.mentor_practitioner_id = #{practitionerId,jdbcType=BIGINT} or
m.subsystem_owner_id = #{practitionerId,jdbcType=BIGINT})
and r.approving_status = #{approvingStatus,jdbcType=BIGINT}
<if test="approvingStatus != null">
<choose>
<when test='approvingStatus == "0" '>
and r.approving_status is null
</when>
<when test='approvingStatus == "1" '>
and r.approving_status = 1
</when>
<when test='approvingStatus == "2" '>
and r.approving_status = 0
</when>
</choose>
</if>
and m.md_drop_option_id != (select id
from ag_md_drop_options
where drop_option_code = 'S2'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment