|
@@ -136,7 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="getIdsByTenant" parameterType="java.lang.String" resultType="java.lang.Long">
|
|
<select id="getIdsByTenant" parameterType="java.lang.String" resultType="java.lang.Long">
|
|
select id from course_subject cs where cs.`status` = 1
|
|
select id from course_subject cs where cs.`status` = 1
|
|
--- AND (SELECT COUNT(*) FROM sys_old_org sog WHERE sog.tenant_id = cs.tenant_id AND sog.share_class = 1) > 0
|
|
|
|
|
|
+ AND (SELECT COUNT(*) FROM sys_old_org sog WHERE sog.tenant_id = cs.tenant_id AND sog.share_class = 1) > 0
|
|
<if test="subNames != null and subNames.size()!=0 ">
|
|
<if test="subNames != null and subNames.size()!=0 ">
|
|
AND cs.subject_name in
|
|
AND cs.subject_name in
|
|
<foreach collection="subNames" item="item" index="index" open="(" close=")" separator=",">
|
|
<foreach collection="subNames" item="item" index="index" open="(" close=")" separator=",">
|