使用mybatis#使用{}和CONCAT字符串拼接实现模糊查询
@Select("SELECT * FROM department WHERE `NAME` LIKE CONCAT(CONCAT('%',#{name},'%')) ")
List<Department> fuzzyQueryDepartmentList(String name);
使用mybatis#使用{}和CONCAT字符串拼接实现模糊查询
@Select("SELECT * FROM department WHERE `NAME` LIKE CONCAT(CONCAT('%',#{name},'%')) ")
List<Department> fuzzyQueryDepartmentList(String name);