瀏覽代碼

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

dzx 1 年之前
父節點
當前提交
3ccf49611b
共有 1 個文件被更改,包括 6 次插入6 次删除
  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>