在接口中通过param注解
public List<Student> getStudentList(@Param(value = "name") String name, @Param(value = "sex") String sex, @Param(value = "birthday") Date birthdar);
通过map 的形式
Map<String, String> map = new HashMap<String, String>();
map.put("sex", "女");
map.put("name", "李");
List<Student> studentList = studentMapper.getStudentList(map);
for (Student entityTemp : studentList) {
System.out.println(entityTemp.toString());
}