@RequestMapping("/transaction/get-user-of-dept") public @ResponseBody List<Employee> getEmployeeOfDept(@RequestParam Integer deptId) { List<Employee> list = cmsUserService.getEmployeeOfDept(deptId); return list; }
@RequestMapping("/transaction/get-all-complaint-repair-employee") public @ResponseBody List<ComplaintRepairEmployee> getComplaintRepairEmployee() { return cmsUserService.getComplaintRepairEmployee(); }
@RequestMapping(value = "/transaction/add-cms-user", method = RequestMethod.POST) private String createCMSUser(@ModelAttribute ComplaintRepairEmployee employee) { logger.info("employee : " + employee); cmsUserService.addEmployeeOfDept(employee); return "redirect:/transaction/user-list"; }