zouxuan 5 years ago
parent
commit
8c6fac0550
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/GroupMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/GroupMapper.xml

@@ -17,7 +17,7 @@
     <sql id="searchMusicGroupsCondition">
         <where>
             <if test="search!=null">
-                AND g.id_ = #{search} OR g.name_ LIKE CONCAT( '%', #{search}, '%' )
+                AND (g.id_ = #{search} OR g.name_ LIKE CONCAT( '%', #{search}, '%' ))
             </if>
             <if test="organIdList!=null">
                 AND FIND_IN_SET(g.organ_id_,#{organIdList})
@@ -31,7 +31,7 @@
     <sql id="searchVipGroupsCondition">
         <where>
             <if test="search!=null">
-                AND g.id_ = #{search} OR g.name_ LIKE CONCAT( '%', #{search}, '%' )
+                AND (g.id_ = #{search} OR g.name_ LIKE CONCAT( '%', #{search}, '%' ))
             </if>
             <if test="organIdList!=null">
                 AND FIND_IN_SET(g.organ_id_,#{organIdList})