浏览代码

fengji 修复 sql 错误

yanite 3 年之前
父节点
当前提交
95d30981d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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