伪代码…
EmployeeController
@RequestMapping("/xxx/xxx")
@ResponseBody
public List employeeList(HttpServletRequest req, HttpServletResponse resp) {
Map map= new HashMap();
map.put("department_id",department_id);
List list = EmployeeService.findEmployee(map);
return list;
}
EmployeeService接口
List findEmployee(Map map)