|
@@ -81,6 +81,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="projectId != null and projectId!=0 ">
|
|
|
and (SELECT COUNT(t.id) FROM course_subject_project t where t.project_id = #{projectId} AND t.subject_id = s.id) > 0
|
|
|
</if>
|
|
|
+ <if test="businessId != null and businessId!=0 ">
|
|
|
+ and (SELECT COUNT(t.id) FROM course_subject_project t LEFT JOIN course_business cb on cb.project_id = t.project_id.id where t.project_id = #{projectId} AND t.subject_id = s.id) > 0
|
|
|
+ </if>
|
|
|
<if test="subjectName != null and subjectName!='' ">
|
|
|
AND s.subject_name = #{subjectName}
|
|
|
</if>
|