Browse Source

模糊查询

haonan 1 year ago
parent
commit
bc129904e3

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