Jelajahi Sumber

修改學時審核

change 3 tahun lalu
induk
melakukan
544c7ee312

+ 4 - 1
zhongzheng-system/src/main/resources/mapper/modules/user/UserMapper.xml

@@ -161,9 +161,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="userId != null and userId != ''" >
             AND u.user_id = #{userId}
         </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
         </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>