소스 검색

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