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