一般情况
@select(“select * from user where name = #{name}”)
List selectUserByName (String name)
高级用法
@Select(“select * from userf where name like CONCAT(’%’,#{s},’%’)”)
List selectLikename(String s);
concat拼接字符串
CONCAT(’%’,#{0},’%’)") 不能直接用 ‘%#{s}%’