zouxuan hace 4 años
padre
commit
7ca96768fe

+ 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}
                 AND type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
             </if>
             </if>
             <if test="search != null and search != ''">
             <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>
             </if>
         </where>
         </where>
     </sql>
     </sql>