|
@@ -161,9 +161,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="userId != null and userId != ''" >
|
|
<if test="userId != null and userId != ''" >
|
|
AND u.user_id = #{userId}
|
|
AND u.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
- <if test="gradePoint != null" >
|
|
|
|
|
|
+ <if test="gradePoint != null and gradePoint =1" >
|
|
AND (SELECT COUNT(u.user_id) FROM class_grade_user cgu where 1=1 AND u.status in (1) and cgu.user_id= u.user_id) > 0
|
|
AND (SELECT COUNT(u.user_id) FROM class_grade_user cgu where 1=1 AND u.status in (1) and cgu.user_id= u.user_id) > 0
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="gradePoint != null and gradePoint =2" >
|
|
|
|
+ AND (SELECT COUNT(u.user_id) FROM class_grade_user cgu where 1=1 AND u.status in (1) and cgu.user_id= u.user_id) = 0
|
|
|
|
+ </if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|