|
@@ -928,13 +928,13 @@
|
|
|
<where>
|
|
|
<if test="search != null">
|
|
|
AND (cg.name_ LIKE CONCAT('%',#{search},'%') OR cg.id_ = #{search}
|
|
|
- <if test="groups != null">
|
|
|
+ <if test="groups != null and organIdList==null">
|
|
|
OR cg.music_group_id_ IN
|
|
|
<foreach collection="groups" item="group" open="(" close=")" separator=",">
|
|
|
#{group.id}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="classGroupIds != null">
|
|
|
+ <if test="classGroupIds != null and organIdList==null">
|
|
|
OR cg.id_ IN
|
|
|
<foreach collection="classGroupIds" item="classGroupId" open="(" close=")" separator=",">
|
|
|
#{classGroupId}
|
|
@@ -942,6 +942,18 @@
|
|
|
</if>
|
|
|
)
|
|
|
</if>
|
|
|
+ <if test="groups != null and organIdList!=null">
|
|
|
+ AND cg.music_group_id_ IN
|
|
|
+ <foreach collection="groups" item="group" open="(" close=")" separator=",">
|
|
|
+ #{group.id}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="classGroupIds != null and organIdList!=null">
|
|
|
+ AND cg.id_ IN
|
|
|
+ <foreach collection="classGroupIds" item="classGroupId" open="(" close=")" separator=",">
|
|
|
+ #{classGroupId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
<if test="groupType != null">
|
|
|
AND cg.group_type_=#{groupType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|