Browse Source

学生信息修改列表查询报错修复

dzx 1 year ago
parent
commit
3ccf49611b
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/main/resources/mapper/student/BaseStudentSchoolRollMapper.xml

+ 6 - 6
src/main/resources/mapper/student/BaseStudentSchoolRollMapper.xml

@@ -21,12 +21,12 @@
             and t4.id = #{dto.classId}
         </if>
         <if test="dto.keyWord != null and dto.keyWord != ''">
-            and (t4.name like concat('%', #{keyWord}, '%')
-            or t2.name like concat('%', #{keyWord}, '%')
-            or t5.teacher_name like concat('%', #{keyWord}, '%')
-            or t2.student_id like concat('%', #{keyWord}, '%')
-            or t2.mobile like concat('%', #{keyWord}, '%')
-            or (SELECT mobile FROM base_student_family_member WHERE delete_mark = 0 AND user_id = t2.id AND is_guardian = 1 and mobile like concat('%', #{keyWord}, '%'))
+            and (t4.name like concat('%', #{dto.keyWord}, '%')
+            or t2.name like concat('%', #{dto.keyWord}, '%')
+            or t5.name like concat('%', #{dto.keyWord}, '%')
+            or t1.student_id like concat('%', #{dto.keyWord}, '%')
+            or t2.mobile like concat('%', #{dto.keyWord}, '%')
+            or (SELECT mobile FROM base_student_family_member WHERE delete_mark = 0 AND user_id = t2.id AND is_guardian = 1 and mobile like concat('%', #{dto.keyWord}, '%'))
             )
         </if>
     </select>