|
@@ -311,8 +311,11 @@
|
|
|
<if test="search!=null">
|
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%'))
|
|
|
</if>
|
|
|
- <if test="organId != null and organId != ''">
|
|
|
- AND FIND_IN_SET(t.organ_id_,#{organId})
|
|
|
+ <if test="organIds != null and organIds.size > 0">
|
|
|
+ AND t.organ_id_ IN
|
|
|
+ <foreach collection="organIds" item="organId" open="(" close=")" separator=",">
|
|
|
+ #{organId}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="existVipCourse!=null and existVipCourse==1">
|
|
|
AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON
|
|
@@ -421,8 +424,11 @@
|
|
|
<if test="search!=null">
|
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%'))
|
|
|
</if>
|
|
|
- <if test="organId != null and organId != ''">
|
|
|
- AND FIND_IN_SET(t.organ_id_, #{organId})
|
|
|
+ <if test="organIds != null and organIds.size > 0">
|
|
|
+ AND t.organ_id_ IN
|
|
|
+ <foreach collection="organIds" item="organId" open="(" close=")" separator=",">
|
|
|
+ #{organId}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="existVipCourse!=null and existVipCourse==1">
|
|
|
AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON
|