like CONCAT(#{customerName},'%')
and au.recorderCode like '${recorderCode}%'
写错了就报 Parameter index out of range (1 > number of parameters, which is 0).
若要like 多个条件,可以这样写
<if test="functionAreaCodes != null and functionAreaCodes != ''" >
and
<foreach collection="functionAreaCodes" open="(" close=")" item="functionAreaCode" separator="OR">
recorder_store_code LIKE CONCAT(#{functionAreaCode},'%')
</foreach>
</if>