瀏覽代碼

模糊查询

haonan 1 年之前
父節點
當前提交
bc129904e3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cooleshow-user/user-biz/src/main/resources/config/mybatis/TenantAlbumMapper.xml

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/TenantAlbumMapper.xml

@@ -29,7 +29,7 @@
         left join tenant_info i on r.tenant_id_ = i.id_
         <where>
             <if test="param.name != null and param.name != ''">
-                and t.name_ = #{param.name}
+                and t.name_ like CONCAT('%', #{param.name}, '%')
             </if>
             <if test="param.tenantId != null ">
                 and i.id_= #{param.tenantId}