select * from provider where 1=1
<if test="providerName !=null and providerName != ''">
and providerName like '%${providerName}%'
</if>
${}表示字符串拼接
select * from provider where 1=1
<if test="providerName !=null and providerName != ''">
and providerName like '%${providerName}%'
</if>
${}表示字符串拼接