Browse Source

fengji 修复 sql 错误

yanite 3 years ago
parent
commit
95d30981d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/PracticeGroupMapper.xml

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

@@ -533,7 +533,7 @@
         <where>
         	u.tenant_id_ = #{tenantId}
             <if test="search != null and search != ''">
-                (u.id_ = #{search} OR u.`username_` LIKE CONCAT('%',#{search},'%'))
+                AND (u.id_ = #{search} OR u.`username_` LIKE CONCAT('%',#{search},'%'))
             </if>
             <if test="buyPractice != null and buyPractice == false">
                 AND c.firstBuyTime IS NULL