Commit 7ce67ced by 崔彦峰

modify:等级考试列表查询sql修改增加状态status过滤。

1 parent 61d3da47
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
WHERE exam.deleted_flag = 'N' WHERE exam.deleted_flag = 'N'
<if test="notRelatedPlan != null and notRelatedPlan"> <if test="notRelatedPlan != null and notRelatedPlan">
AND ( AND (
(
<!-- 情况1:考试没有关联任何培训计划 --> <!-- 情况1:考试没有关联任何培训计划 -->
NOT EXISTS ( NOT EXISTS (
SELECT 1 SELECT 1
...@@ -58,6 +59,8 @@ ...@@ -58,6 +59,8 @@
AND plan.deleted_flag = 'N' AND plan.deleted_flag = 'N'
AND plan.scene_type = 1 AND plan.scene_type = 1
) )
AND exam.status in(1,2)
)
<!-- 情况2:或者考试关联了指定的培训计划 --> <!-- 情况2:或者考试关联了指定的培训计划 -->
<if test="planId != null"> <if test="planId != null">
OR EXISTS ( OR EXISTS (
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!