不使用concat会出现
Parameter index out of range (1 > number of parameters, which is 0)这个错误
正确示例:
@Select("SELECT * FROM shop WHERE shop.name_text LIKE CONCAT('%',#{0},'%') ")
public List<Shop> selectByName(String name_text);
不使用concat会出现
Parameter index out of range (1 > number of parameters, which is 0)这个错误
正确示例:
@Select("SELECT * FROM shop WHERE shop.name_text LIKE CONCAT('%',#{0},'%') ")
public List<Shop> selectByName(String name_text);