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

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

@@ -1411,7 +1411,7 @@
                 AND type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
             </if>
             <if test="search != null and search != ''">
-                AND (mg.name_ LIKE CONCAT('%','','%') OR cg.music_group_id_ LIKE CONCAT('%','','%'))
+                AND (mg.name_ LIKE CONCAT('%',#{search},'%') OR cg.music_group_id_ LIKE CONCAT('%',#{search},'%'))
             </if>
         </where>
     </sql>