浏览代码

老师考勤列表新增字段 处理意见

zouxuan 4 年之前
父节点
当前提交
2d97652e36
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/StudentVisitMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/StudentVisitMapper.xml

@@ -106,7 +106,7 @@
     <sql id="queryPageSql">
         <where>
             <if test="search != null and search != ''">
-                AND (sv.object_id_ = #{teacher} OR t.id_ = #{teacher} OR s.id_ = #{student} OR t.real_name_ LIKE CONCAT('%',#{teacher},'%') OR s.username_ LIKE CONCAT('%',#{student},'%'))
+                AND (sv.object_id_ = #{search} OR t.id_ = #{search} OR s.id_ = #{search} OR t.real_name_ LIKE CONCAT('%',#{search},'%') OR s.username_ LIKE CONCAT('%',#{search},'%'))
             </if>
             <if test="teacher != null and teacher != ''">
                 AND (t.id_ = #{teacher} OR t.real_name_ LIKE CONCAT('%',#{teacher},'%'))