|
@@ -30,8 +30,10 @@
|
|
LEFT JOIN tenant_album_ref r on t.id_ = r.tenant_album_id_
|
|
LEFT JOIN tenant_album_ref r on t.id_ = r.tenant_album_id_
|
|
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 != ''">
|
|
|
|
- and t.name_ like CONCAT('%', #{param.name}, '%')
|
|
|
|
|
|
+ <if test="param.keyword !=null and param.keyword.trim() !=''">
|
|
|
|
+ and (t.name_ like concat('%',#{param.keyword},'%')
|
|
|
|
+ or i.name_ like concat('%',#{param.keyword},'%')
|
|
|
|
+ )
|
|
</if>
|
|
</if>
|
|
<if test="param.tenantId != null ">
|
|
<if test="param.tenantId != null ">
|
|
and i.id_= #{param.tenantId}
|
|
and i.id_= #{param.tenantId}
|