소스 검색

班级列表

change 3 년 전
부모
커밋
63d07add82

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeSysMapper.xml

@@ -42,13 +42,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             class_grade_sys s
         where 1=1
         <if test="status != null and status.size()!=0 ">
-            AND b.status in
+            AND s.status in
             <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
                 #{item}
             </foreach>
         </if>
         <if test="gradeId != null and gradeId != ''">
-            AND b.grade_id = #{gradeId}
+            AND s.grade_id = #{gradeId}
         </if>
     </select>
 </mapper>

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

@@ -38,13 +38,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
             1 = 1
         <if test="status != null and status.size()!=0 ">
-            AND b.status in
+            AND g.status in
             <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
                 #{item}
             </foreach>
         </if>
         <if test="gradeId != null and gradeId != ''">
-            AND b.grade_id = #{gradeId}
+            AND g.grade_id = #{gradeId}
         </if>
     </select>
 </mapper>