瀏覽代碼

新增筛选条件

cy 3 年之前
父節點
當前提交
837cc716e9
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      cooleshow-user/user-biz/src/main/resources/config/mybatis/VideoLessonGroupMapper.xml

+ 6 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/VideoLessonGroupMapper.xml

@@ -113,6 +113,12 @@
 			<if	test="param.lessonSubject != null">
 				AND g.lesson_subject_ = #{param.lessonSubject}
 			</if>
+			<if test="null != param.search and '' != param.search">
+				AND (
+				g.lesson_name_ LIKE CONCAT('%', #{param.search}, '%') OR
+				s.username_ LIKE CONCAT('%', #{param.search}, '%')
+				)
+			</if>
 		</where>
 	</select>
 	<select id="selectStudentPage" resultType="com.yonge.cooleshow.biz.dal.vo.VideoLessonStudentDetailVo">