浏览代码

酷乐秀曲目来源改为内容平台

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

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/SubjectMapper.xml

@@ -251,7 +251,7 @@
                 AND t.parent_subject_id_ != 0 AND t.cbs_subject_id_ is not null
             </if>
             <if test="keyword != null and keyword != ''">
-                AND t.name_ LIKE CONCAT('%',#{keyword},'%')
+                AND (t.name_ LIKE CONCAT('%',#{keyword},'%') OR t.code_ LIKE CONCAT('%',#{keyword},'%'))
             </if>
             <if test="delFlag != null">
                 AND t.del_flag_ = #{delFlag}
@@ -308,7 +308,7 @@
                 AND t.parent_subject_id_ != 0 AND t.cbs_subject_id_ is not null
             </if>
             <if test="keyword != null and keyword != ''">
-                AND t.name_ LIKE CONCAT('%',#{keyword},'%')
+                AND (t.name_ LIKE CONCAT('%',#{keyword},'%') OR t.code_ LIKE CONCAT('%',#{keyword},'%'))
             </if>
             <if test="delFlag != null">
                 AND t.del_flag_ = #{delFlag}