|
@@ -44,9 +44,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN course_project_type cpt ON cb.project_id = cpt.id
|
|
|
LEFT JOIN course_education_type cet ON cet.id = cpt.education_id
|
|
|
WHERE
|
|
|
- obc.`status` = 1
|
|
|
+ 1=1
|
|
|
and cet.`status` = 1
|
|
|
and cb.`status` = 1
|
|
|
+ <if test="status != null and status != ''">
|
|
|
+ and obc.`status` = #{status}
|
|
|
+ </if>
|
|
|
<if test="gradeType != null and gradeType != ''">
|
|
|
and obc.grade_type = #{gradeType}
|
|
|
</if>
|