|
@@ -73,6 +73,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
school s
|
|
|
LEFT JOIN apply_areas a ON s.school_city_id=a.area_id
|
|
|
LEFT JOIN apply_areas v ON s.school_province_id=v.area_id
|
|
|
+ LEFT JOIN school_project p ON p.school_id = s.id
|
|
|
+ LEFT JOIN course_business b on b.project_id =p.project_id
|
|
|
+ LEFT JOIN course_project_type t on p.project_id=t.id
|
|
|
+ LEFT JOIN course_education_type e on t.education_id = e.id
|
|
|
where 1=1
|
|
|
<if test="status != null and status.size()!=0 ">
|
|
|
AND s.status in
|
|
@@ -97,6 +101,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="schoolName != null and schoolName != ''">
|
|
|
and s.school_name like concat('%', #{schoolName}, '%')
|
|
|
</if>
|
|
|
-
|
|
|
+ <if test="educationId != null and educationId!=0 ">
|
|
|
+ AND e.id = #{educationId}
|
|
|
+ </if>
|
|
|
+ <if test="projectId != null and projectId!=0 ">
|
|
|
+ AND t.id = #{projectId}
|
|
|
+ </if>
|
|
|
+ <if test="businessId != null and businessId!=0 ">
|
|
|
+ AND b.id = #{businessId}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|