Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-riskmanage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7ce67ced
authored
Dec 15, 2025
by
崔彦峰
1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
modify:等级考试列表查询sql修改增加状态status过滤。
1 parent
61d3da47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
rpc-dj-riskmanage/src/main/resources/META-INF/orm/LearningCenterLevelExamMapper.xml
rpc-dj-riskmanage/src/main/resources/META-INF/orm/LearningCenterLevelExamMapper.xml
View file @
7ce67ce
...
@@ -50,25 +50,28 @@
...
@@ -50,25 +50,28 @@
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:考试没有关联任何培训计划 -->
(
NOT EXISTS (
<!-- 情况1:考试没有关联任何培训计划 -->
SELECT 1
NOT EXISTS (
FROM dj_car_life_learning_center_training_plan plan
SELECT 1
WHERE plan.exam_id = exam.id
FROM dj_car_life_learning_center_training_plan plan
AND plan.deleted_flag = 'N'
WHERE plan.exam_id = exam.id
AND plan.scene_type = 1
AND plan.deleted_flag = 'N'
)
AND plan.scene_type = 1
<!-- 情况2:或者考试关联了指定的培训计划 -->
)
<if
test=
"planId != null"
>
AND exam.status in(1,2)
OR EXISTS (
)
SELECT 1
<!-- 情况2:或者考试关联了指定的培训计划 -->
FROM dj_car_life_learning_center_training_plan plan
<if
test=
"planId != null"
>
WHERE plan.exam_id = exam.id
OR EXISTS (
AND plan.deleted_flag = 'N'
SELECT 1
AND plan.scene_type = 1
FROM dj_car_life_learning_center_training_plan plan
AND plan.id = #{planId}
WHERE plan.exam_id = exam.id
)
AND plan.deleted_flag = 'N'
</if>
AND plan.scene_type = 1
AND plan.id = #{planId}
)
</if>
)
)
</if>
</if>
<if
test=
"beisenExamName != null and beisenExamName != ''"
>
<if
test=
"beisenExamName != null and beisenExamName != ''"
>
...
...
@wangxw1
王欣伟
@wangxw1
commented
Dec 15, 2025
Master
Auto Review Result: 关注的文件没有修改
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment