在mapper.xml中like直接應用. <if test="sku != null"> and b.sku like '%'|| #{sku} || '%' </if> 注意如果前面where 加了<>,eg<where></where>, ...
確定! 回上一頁